WP Super Cache
absolute path to plugin in config.php (3 posts)

  1. John Huebner
    Posted 2 years ago #

    Is this something else that I'm going to have to make sure I fix when I migrate from dev to live server?

    define( 'WPCACHEHOME', '/absolute/path/to/wp-content/plugins/wp-super-cache/' );

    Is it really necessary to set this as an absolute server path?


  2. z.green
    Posted 2 years ago #

    @Hube2 see http://wordpress.org/support/topic/please-update-wpcachehome-path-to-something-more-dynamic?replies=7

    But, I haven't been able to get this to work myself. Let me know if you have any luck.

  3. John Huebner
    Posted 2 years ago #


    I didn't think about that, but the define should look like:

    define('WPCACHEHOME', dirname(__FILE__).'/wp-content/plugins/wp-super-cache/');

    If it must be and absolute path then this is the way the plugin should add it to prevent problems during migration for those that forget to check everything.

    On the other hand, I don't see why this is needed unless the plugin needs it outside of WP or before WP is completely loaded. Once WP is loaded you have access to plugin_dir_path($file) which should be used to get the path.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.