• Resolved atoomic

    (@atoomic)


    When activating a different theme whereas WP Super Cache is enabled, the cache is not purged.

    We have to either:

    • click on “Delete Cache” action from “WP Super Cache Settings” in wp-admin
    • or perform a call to the REST API /cache to clear the cache
    POST /wp-json/wp-super-cache/v1/cache 
    { "all": true }
    
    # Reply:
    'Cache Cleared': true
    

    Steps to reproduce:

    • enable WP Super Cache
    • access index page from your browser
    • in wp-admin activate a different theme
    • access index page and notice the previous cache is still used
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thanks for reporting this, but it’s intentional. Quite often when the theme is changed it may be to test it out, or an error may happen when it’s changed.

    If I was interested in changing the theme, I would disable caching for logged-in users. However, it would be useful if the plugin displayed a notice on the themes page after a theme was activated to make it easier for an admin user to clear the cache. I’ve created an enhancement request to track progress on this.

    Thread Starter atoomic

    (@atoomic)

    thanks for confirming this is a feature ?? and not a bug

    I understand your concern however I can also see people being surprised that changing a theme or plugin doesn’t invalidate the cache.

    IMO this would be a useful option to invalidate based on plugin/theme change even if it’s not default?

    Plugin Support Alin (a11n)

    (@alinclamba)

    Hi @toddrin,

    I have taken note of your proposed enhancement request. However, implementing this may not be straightforward, and it is not feasible to guarantee that we will be able to carry it out. The discussion regarding this matter will persist in the corresponding Github issue. For the time being, I will consider this thread as resolved. Thank you for your understanding!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing theme does not invalidate cache’ is closed to new replies.