WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Multisite Behavior (8 posts)

  1. markb1439
    Member
    Posted 3 years ago #

    Hi,

    We're using WP Super Cache on a multisite system, and we're wondering a couple of things:

    1) We need to give users a little control, but without exposing the settings to them. For example, if a user makes a CSS change, we need to give them the ability to refresh their cache. This could be done by activating the setting to empty the cache when a new post is published. But, since the cache is network-wide, I believe, this will reset everyone's cache. Is there a way to set it so that one user publishing or editing a post will only reset the cache for that particular blog?

    2) To keep the cache refreshed periodically, is there anything wrong with setting a cron job (maybe every hour) that clears the cache entirely?

    Thanks,

    Mark

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    You could write a plugin that finds their cached files and deletes them but unfortunately Supercache doesn't do that yet. It's all or nothing I'm afraid.

    No, you can clear the cache with a cron job. Nothing wrong with that but it will cause a load spike when all those pages are regenerated.

  3. markb1439
    Member
    Posted 3 years ago #

    Unfortunately, writing a plugin would be beyond the scope of what I'm able to do in this case. ;-)

  4. markb1439
    Member
    Posted 3 years ago #

    Followup question:

    If I activate the option to clear cache when a post or page is published, does this mean that the entire (network-wide) cache will be cleared when any user publishes something?

    If so, is this a problem?

    Thanks,

    Mark

  5. markb1439
    Member
    Posted 3 years ago #

    Supercache doesn't do that yet. It's all or nothing I'm afraid.

    Have you considered expanding the multisite capability, given the growing popularity of multisite? The ideal solution would be for each blog to be cached separately, as I believe Quick Cache does. It would be great to hide major configuration settings from sub-site owners, but at least give them the ability to enable or disable caching, and to clear their cache.

    Right now in a multisite setting, if a sub-site user makes changes and needs to clear the cache so those changes are made public, he or she is dead in the water, right?

    Just a suggestion. Thanks for listening.

    Mark

  6. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Oh yes, I'd love if it deleted the cache files for one blog at a time! I'm sure it'll be added in a future version. Hopefully someone reading this will decide to add that feature to the plugin! (hint hint to anyone finding this page in the future!)

  7. markb1439
    Member
    Posted 3 years ago #

    If I knew how, I would. :-)

  8. markb1439
    Member
    Posted 3 years ago #

    BTW, this is becoming a must-have feature for us. We need a way that individual sub-sites can clear their caches. Otherwise we know we're going to have support ticket after support ticket asking why changes aren't reflected on the site after changing themes, for example. I just don't think we can offer network-wide caching without providing a way for users to clear their cache. And it's not a viable solution to have the entire network's cache cleared when a particular thing happens on a sub-site. :-(

    I noticed that the Quick Cache plugin seems to automatically clear a sub-site's cache if the theme is changed on that site. I'm going to peruse the code for inspiration, but I'm not a developer...so I don't think I have the ability to add that functionality (or anything like it) to WP Super Cache.

    Mark

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic