• Resolved byoussin

    (@byoussin)


    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://ww.wp.xz.cn/plugins/autoptimize/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank Goossens

    (@futtta)

    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

    (@byoussin)

    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

    (@futtta)

    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

    (@byoussin)

    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.