Ready to get started?Download WordPress


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

  1. Hube2
    Posted 5 months 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 5 months 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. Hube2
    Posted 5 months 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.


You must log in to post.

About this Plugin

About this Topic


No tags yet.