Title: Failed to initialize object cache
Last modified: December 30, 2023

---

# Failed to initialize object cache

 *  Resolved [worldsdream](https://wordpress.org/support/users/worldsdream/)
 * (@worldsdream)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/failed-to-initialize-object-cache/)
 * Hi,
 * When I look at the server error logs, I can see the following coming up every
   time:
 * _Got error ‘PHP message: objectcache.critical: Failed to initialize object cache:
   The `WP\_REDIS\_CONFIG` constant has not been defined. If it was defined, try
   moving it closer to the beginning of the `wp-config.php` file. For more information
   see: [https://objectcache.pro/docs/configuration/](https://objectcache.pro/docs/configuration/);
   PHP message: objectcache.warning: Failing over to in-memory object cache’_
 * In the WP dashboard, it shows the Redis Object Cache as Connected, and the drop-
   in is valid.
 * Thanks.

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

 *  Plugin Support [Julie](https://wordpress.org/support/users/julieadrienne/)
 * (@julieadrienne)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/failed-to-initialize-object-cache/#post-17313451)
 * That error message is coming from Object Cache Pro, not Redis Object Cache. Who
   are you hosting with?
 *  Thread Starter [worldsdream](https://wordpress.org/support/users/worldsdream/)
 * (@worldsdream)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/failed-to-initialize-object-cache/#post-17314571)
 * Cloudways.
 * It’s happening on all my WP sites that are being hosted on Cloudways.
 *  Plugin Support [Julie](https://wordpress.org/support/users/julieadrienne/)
 * (@julieadrienne)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/failed-to-initialize-object-cache/#post-17315848)
 * In that case we suggest asking their team to set up Object Cache Pro for you,
   and uninstalling Redis Object Cache.
 *  Thread Starter [worldsdream](https://wordpress.org/support/users/worldsdream/)
 * (@worldsdream)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/failed-to-initialize-object-cache/#post-17319532)
 * The only plugin installed is redis object cache pro and it’s giving this error
   in the logs every time.
 *  Plugin Support [Julie](https://wordpress.org/support/users/julieadrienne/)
 * (@julieadrienne)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/failed-to-initialize-object-cache/#post-17321066)
 * The Cloudways support team can assist you with this. They manage their own object
   cache deployment.

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

The topic ‘Failed to initialize 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Julie](https://wordpress.org/support/users/julieadrienne/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/failed-to-initialize-object-cache/#post-17321066)
 * Status: resolved