Title: Clear cache without saving changes
Last modified: August 22, 2016

---

# Clear cache without saving changes

 *  Resolved [byoussin](https://wordpress.org/support/users/byoussin/)
 * (@byoussin)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/clear-cache-without-saving-changes/)
 * I wonder if there is a way to clear AO cache without pressing the button Save
   Changes and Empty Cache.
    I want to clear cache every time I make change that
   should affect it, such as editing an existing page or post. However, I am concerned
   with accidentally changing some of the settings before saving them, and I feel
   the need to check them every time I press this button. Is there any way of clearing
   the cache without saving changes? Thanks again for this great plugin! Baruch
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/clear-cache-without-saving-changes/#post-5732228)
 * No, there’s not I’m afraid (although again some API-magicry could be applied).
 * That being said; you normally will not have to clear AO’s cache when editing 
   pages/ posts as;
    1. normally page/ posts edits don’t impact CSS/JS 2. if there
   is an impact on CSS/JS, AO will notice that the aggregated CSS/JS does not match
   with what is in cache and will create a new entry in cache
 * hope this clarifies,
    frank
 *  Thread Starter [byoussin](https://wordpress.org/support/users/byoussin/)
 * (@byoussin)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/clear-cache-without-saving-changes/#post-5732240)
 * Frank,
    Thanks for your clarification. Are you saying that the html cache is 
   created and css/js cache is verified when I edit a post or a page, not when it
   is requested each time? Thanks Baruch
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/clear-cache-without-saving-changes/#post-5732252)
 * well;
    1. autoptimize only caches CSS/JS 2. if you don’t have a page caching 
   solution (plugin), autoptimize gets called every time, but will check if the 
   aggregated CSS/JS is already in cache and return the cached one if so 3. if you
   have a page cache and the requested page is in cache, autoptimize does not get
   called at all, as the page cache will contain references to the already cached
   optimized CSS/JS
 * so it actually depends on your page caching solution, really 🙂
 *  Thread Starter [byoussin](https://wordpress.org/support/users/byoussin/)
 * (@byoussin)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/clear-cache-without-saving-changes/#post-5732257)
 * Frank,
    Thanks for your clarifications. I use W3 Total Cache with its Minify 
   facility off. Everything is clear, and I see that I need to clear only W3TC cache
   and I do not need to clear AO’s cache unless it grows too big. Thanks for the
   great plugin! Baruch

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Clear cache without saving changes’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [byoussin](https://wordpress.org/support/users/byoussin/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/clear-cache-without-saving-changes/#post-5732257)
 * Status: resolved