WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
[resolved] Cache plugins deleted on update (6 posts)

  1. jp2112
    Member
    Posted 2 years ago #

    Greetings,

    I use the WPSCMin plugin with WPSC, but every time WPSC is updated, the plugins folder gets overwritten and I need to reinstall it.

    "Cache plugins are PHP scripts that live in a plugins folder inside the wp-super-cache folder. They are loaded when Supercache loads, much sooner than regular WordPress plugins."

    I understand that from time to time new features are added to this folder. But is there any way to keep the existing contents of that folder on update?

    Thanks

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Unfortunately this is a side effect of how WP updates plugins :(

    You can add $wp_cache_plugins_dir (pointing at a new plugins folder) to the config file (either wp-config.php or wp-cache-config.php) and the plugin will load it's plugins from that folder instead. There's more info in the developer docs page:
    http://ocaoimh.ie/wp-super-cache-developers/

    I really should add a note to the plugins folder with this info. Hopefully for the next release.

  3. jp2112
    Member
    Posted 2 years ago #

    Thank you, I should have noticed that! I assume that setting will persist across upgrades.

  4. jp2112
    Member
    Posted 2 years ago #

    I created a new folder in wp-content called 'wpsc_plugins' and uploaded the minify plugin. I changed the line in wp-content/wp-cache-config.php to this:

    $wp_cache_plugins_dir = WP_CONTENT_DIR . '/wpsc_plugins/';

    I logged out to verify the content is minified. It works great! More plugins should have features like this.

  5. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Great! There's a note on the plugins page now but I'd love to automate this. I doubt I'll ever find the time to.

  6. jp2112
    Member
    Posted 1 year ago #

    FYI I just upgraded and this value didn't change. Great job!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic