• Hi there,

    I have noticed a few things where super cache is incorrectly writing the initial wp-cache-config.php file.

    Firstly it adds the following line twice (once at the top, once at the bottom)…

    define( 'WPCACHEHOME', WP_CONTENT_DIR ....etc); //Added by WP-Cache Manager

    Secondly, it uses WP_CONTENT_DIR and a full path when WP_PLUGIN_DIR has been set. I have setup the following in the wp-config file…

    define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content' );
    define('WP_CONTENT_URL', 'http://www.thatcanadiangirl.co.uk/wp-content');
    define('WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp/wp-content/plugins' );
    define('WP_PLUGIN_URL', 'http://www.thatcanadiangirl.co.uk/wp/wp-content/plugins');

    (so that I can put wordpress and all plugins into the /wp/ folder nice and cleanly for svn updates, but keep /wp-content/ separate).

    With this configuration, wp-super-cache writes the following configuration value…

    define( 'WPCACHEHOME', WP_CONTENT_DIR . "/var/www/vhosts/thatcanadiangirl.co.uk/httpdocs/wp/wp-content/plugins/wp-super-cache/" ); //Added by WP-Cache Manager

    rather than something like…

    define( 'WPCACHEHOME', WP_PLUGIN_DIR . "/wp-super-cache/" );

    This leads to wordpress crapping out. Naturally, I have worked around this by manually editing the wp-cache-config.php file as per the WP_PLUGIN_DIR above (WP 2.7.1).

    Thanks (and hope you are enjoying the Wii games Vero bought you! 🙂

    Andrew

The topic ‘[Plugin: WP Super Cache] wp-cache-config problems’ is closed to new replies.