Title: [Plugin: WP Super Cache] wp-cache-config problems
Last modified: August 19, 2016

---

# [Plugin: WP Super Cache] wp-cache-config problems

 *  [preppeller](https://wordpress.org/support/users/preppeller/)
 * (@preppeller)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-wp-cache-config-problems/)
 * 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.

 * 0 replies
 * 1 participant
 * Last reply from: [preppeller](https://wordpress.org/support/users/preppeller/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-wp-cache-config-problems/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
