Hyper Cache and the WP_CACHE define in config.php

Helping some people with issues of non working Hyper Cache installations, I descovered they are adding the line

define(‘WP_CACHE’, true);

in the wp-config.php file not in the right place. The line of code has to be added after the line

define (‘WPLANG’, ‘it_IT’);

not at the end of the file. If you read carefully the comments in wp-config.php you find at some point this statement:

/* That’s all, stop editing! Happy blogging. */

and that means you have not to add other code after this line. :-)

Have a nice caching (release 2.5 is almost there with new interesting features).


My excuses for my bad english but it's the only way I have to communicate with you. Would you suggest a correction? Leave a comment, thank you!

3 thoughts on “Hyper Cache and the WP_CACHE define in config.php

  1. Norm Sash

    I’m getting the message “To use this working mode, you must add to the file wp-config.php (at its beginning after the <?php) the line of code: define('WP_CACHE', true)"

    I've edited wp-config.php per the instructions (I think), disabled the plugin, activated the plugin, and I'm still getting the message. Any help as to what I'm doing wrong?

    /**
    * WordPress Localized Language, defaults to English.
    *
    * Change this to localize WordPress. A corresponding MO file for the chosen
    * language must be installed to wp-content/languages. For example, install
    * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
    * language support.
    */
    define('WPLANG', '');

    /** Enable cache for Hyper Cache plugin. Norm Sash. 9-22-2011 */
    define(‘WP_CACHE’, true);

      1. Norm+Sash

        Hi Stefano… I’ve looked in config.php and can only find one define statement. I’ve installed Hyper Cache on two different blogs and both are showing the same symptom with the error message. Is that the error message that would be displayed if define(“WP_CACHE”) was done more than once? Maybe it is defined in another .php somewhere? Or is config.php the only place where that would be defined?

        -Norm

Leave a Reply