Changing theme does not invalidate cache
-
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)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Changing theme does not invalidate cache’ is closed to new replies.