Title: WP_CACHE already defined
Last modified: March 21, 2024

---

# WP_CACHE already defined

 *  Resolved [Benedikt Ledl](https://wordpress.org/support/users/benniledl/)
 * (@benniledl)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/wp_cache-already-defined/)
 * Hey, I saw a site where your plugin defined WP_CACHE on the first line of wp-
   config.php
 * I don’t know which was there before, your declaration or the other one but I 
   would recommend:
    1. If such a check does not exist yet, check if it is defined in wp-config.php 
       already before adding your declaration.
    2. Or add the declaration to the very end of the wp-config.php with a check if(!
       defined(‘WP_CACHE’)){define…..}

Viewing 1 replies (of 1 total)

 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/wp_cache-already-defined/#post-17517861)
 * Thank you for this. I will pass it onto our development team

Viewing 1 replies (of 1 total)

The topic ‘WP_CACHE already defined’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/wp_cache-already-defined/#post-17517861)
 * Status: resolved