Title: Error: Could not empty object cache.
Last modified: April 3, 2020

---

# Error: Could not empty object cache.

 *  [Maxi Sosa](https://wordpress.org/support/users/maxisosa/)
 * (@maxisosa)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/)
 * Status: Connected
    Client: PhpRedis (v5.2.1) Drop-in: Valid Ping: 1 Redis Extension:
   5.2.1 Predis Client: 1.1.1 PHP Version: 7.4.4 Redis Version: 3.0.6 Multisite:
   No
 * define(‘WP_REDIS_HOST’, ‘xxxxxxxxx’);
    define(‘WP_CACHE_KEY_SALT’, ‘xxxxxx.com’);
   define(‘WP_REDIS_SELECTIVE_FLUSH’, true);

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12624391)
 * Are you seeing any error message in your logs?
 *  Thread Starter [Maxi Sosa](https://wordpress.org/support/users/maxisosa/)
 * (@maxisosa)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12624445)
 * Nothing.
 * Fact: The 1.4.3 version works perfectly.
    -  This reply was modified 6 years ago by [Maxi Sosa](https://wordpress.org/support/users/maxisosa/).
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12624969)
 * [@maxisosa](https://wordpress.org/support/users/maxisosa/): Does 1.5.0 work?
 * [https://github.com/tillkruss/redis-cache/releases](https://github.com/tillkruss/redis-cache/releases)
 *  Thread Starter [Maxi Sosa](https://wordpress.org/support/users/maxisosa/)
 * (@maxisosa)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12625429)
 * No, after 1.4.3, none.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12627786)
 * Does it work when disabling `WP_REDIS_SELECTIVE_FLUSH`?
 *  Thread Starter [Maxi Sosa](https://wordpress.org/support/users/maxisosa/)
 * (@maxisosa)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12629172)
 * Unfortunately I cannot disable WP_REDIS_SELECTIVE_FLUSH because it clears the
   cache of the rest of the sites.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12631428)
 * There were some major changes to the selective flushing in 1.5.0:
 * [https://github.com/tillkruss/redis-cache/compare/1.4.3…1.5.0](https://github.com/tillkruss/redis-cache/compare/1.4.3…1.5.0)
 * To debug this, you’ll have to disable selective flushing and see if that works.
   If it does work, then you’ll have to run the LUA script by hand to see what the
   error is.
 *  [Austin](https://wordpress.org/support/users/austyfrosty/)
 * (@austyfrosty)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12636923)
 * I have similar issues, where 1.5 breaks our site and I am seeing the following
   errors:
 *     ```
       NOTICE: PHP message: Exception: Predis library not found. Re-install Redis Cache plugin or delete object-cache.php. in /.../wp-content/object-cache.php:552
       ```
   
 * No changes have been made to our server libraries.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12641367)
 * Hi [@austyfrosty](https://wordpress.org/support/users/austyfrosty/),
 * thanks, that’s actionable. Looks like the issue is somewhere here:
    [https://github.com/tillkruss/redis-cache/blob/master/includes/object-cache.php#L543-L554](https://github.com/tillkruss/redis-cache/blob/master/includes/object-cache.php#L543-L554)
 * Could you make sure that the file `/plugins/redis-cache/includes/predis/autoload.
   php` exists on your server?
 *  [Austin](https://wordpress.org/support/users/austyfrosty/)
 * (@austyfrosty)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12642525)
 * We see that there, but wanted to call out that 1.5.6 works, but 1.5.7 broke for
   our install. I’ll see if we can investigate more and get additional logs when
   we test 1.5.7 later this week.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12646413)
 * These are the changes in 1.5.7, nothing related to Predis tho:
 * [https://github.com/tillkruss/redis-cache/compare/1.5.6…1.5.7](https://github.com/tillkruss/redis-cache/compare/1.5.6…1.5.7)
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12656680)
 * Might be related to this:
 * [https://github.com/tillkruss/redis-cache/pull/151](https://github.com/tillkruss/redis-cache/pull/151)

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Error: Could not empty object cache.’ is closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/error-could-not-empty-object-cache/#post-12656680)
 * Status: not resolved