Bug in object caching with AJAX requests
-
Setting a value in the object cache doesn’t work within AJAX requests unless the “Enable caching for wp-admin requests” is ticked.
I fixed this by changing line 831 of ObjectCache_WpObjectCache_Regular.php from:
if ( defined('WP_ADMIN') ) {
to:
if ( defined('WP_ADMIN') && ( !defined('DOING_AJAX') || !DOING_AJAX ) ) {
Sorry if this isn’t the right place to report bugs, I couldn’t find a repo on GitHub or anything. Would happily submit a pull request if there is one ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bug in object caching with AJAX requests’ is closed to new replies.