• Resolved vnpotato

    (@vnpotato)


    Hello,

    We have been using both Autoptimize and WP Rocket. This went well until today.

    Till today, sometimes usually after site code update, the display was corrupted (the site looks as it doesn’t load any css at all. it’s cache-related issue because it displays well to logged-in users).
    what we did was clear cache in wp rocket and then delete the Autoptimize and it fixed it.

    Today it happened again but this time there was no code update or any change. Then, the above method didn’t help anymore, and we had nothing to do but to deactivate Autoptimize.

    In the browser the error displayed was:
    GET siteurl.com/wp-content/cache/autoptimze/autoptimize_(weird string here).php

    We are using Autoptmize 2.7.8, but since there was no change in any plugin/code, this error is weird and we are afraid to activate Autoptimze without understanding what caused it.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Those are “file not found” errors vnpotato, something must be removing the AO cache without all page caches getting cleared (and you likely don’t have the “404 handler” active neither).

    If you (a) enable the 404 handler and (b) make sure the page cache(s) is (are) always cleared when the AO cache gets purged (could be a plugin or theme, Divi is a known culprit) then this will not happen any more.

    hope this clarifies,
    frank

    Thread Starter vnpotato

    (@vnpotato)

    thanks for the reply.

    here is the thing , we also have CLoudflare CDN that is cleared/syndicated with WP Rocket clear cache.
    the easiest thing would be if AO clear cache will be integrated with WP rocket clear cache.

    the way we do it now maybe causes trouble (clear Rocket cache and then clear AO cache manually, maybe in that time period some files are getting created and that causes the problem). that’s my assumption.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Clearing WP Rocket cache should be sufficient actually; AO indeed ‘listens’ to that and will clear its own cache automatically.

    Make sure to also enable the ‘404 fallback’ though, if anything goes wrong with the cache clearing somehow that option ensures things don’t break badly.

    Thread Starter vnpotato

    (@vnpotato)

    so until now there was always a problem that occur in case we cleared cache only in WP rocket.
    We then had to delete cache in AO, otherwise, things stayed broken.
    Yesterday, things stayed broken despite we did the above.

    What is 404 fallback option? I mean, does it fix the problem described? how?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Don’t see how not clearing AO’s cache would cause this problem I’m afraid; if you clear Rocket’s (a) AO’s _should_ be cleared automatically and (b) if that does not work no AO-files are deleted so those would not 404? is there any specific action done by you which *always* triggers this behavior?

    the 404 fallback optoin sees AO create a “fallback” optimized CSS & JS file which can be used if the originally requested file is not found.

    Thread Starter vnpotato

    (@vnpotato)

    so in case there is 404 fallback – it takes the latest css version if it doesn’t find?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    it takes the fallback one, which typically will be a copy of the CSS generated for the homepage right after the last cache clear.

    Thread Starter vnpotato

    (@vnpotato)

    ok, thanks for the help. will try this out

    Thread Starter vnpotato

    (@vnpotato)

    hello, getting back on this –
    the “enable 404 fallback” was turned on.

    So this is not causing the problem.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hmm, in some cases the “404 handler” requires extra configuration on webserver level. Can you share your site’s URL so I can check?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    any news vnpotato ?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No feedback so I assume this got fixed vnpotato ? Feel free to follow up if you still encounter issues!

    have a nice day!
    frank

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Theme broken sometimes, had to deactivate plugin’ is closed to new replies.