marionnewlevant / craft-snitch

Craft plugin. Report when two people might be editing the same entry, category, or global
MIT License
35 stars 16 forks source link

PHP Warning: session_start(): Unable to clear session lock record. #8

Closed blasvicco closed 6 years ago

blasvicco commented 6 years ago

The JS ajax request to snitch/collision/ajax-enter break the PHP session when the server is using memcached with a lock higher than the serverPollInterval.

In order to prevent the error I suggest to wait for the response of the request before called no matter the interval set.

Clearly in here is triggering the request without checking if the last request still in execution.