-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
When Relevanssi 4.8 and Snitch are active at the same time, the site crashes in an infinite loop. Reproducing this is simple: on an empty WP site, install Relevanssi 4.8 and Snitch and then activate both at the same time.
Here's what happens:
- When Snitch is activated, it does some logging with
log_response(). - In order to do the logging, it creates a post using
wp_insert_post(). - This fires up Relevanssi indexing.
- This triggers an asynchronous doc count updating request, even though the post wasn’t actually indexed.
- This action fires up another thread of WP, where Snitch wants to do logging…
- …which gets us back to 2 for an infinite loop.
The fix on Relevanssi end is fairly simple. There's no reason for the async doc count request to run if the post wasn't indexed, so from next version onwards, Relevanssi will check for that and that will break us from the infinite loop right away. Thus, there's no immediate need to change anything in Snitch. However, I wanted to inform you about this, as similar issues may crop up with other plugins, and perhaps there's something in your end to stop such infinite loops from forming in the future.
Reactions are currently unavailable