• Hi!

    Start of using your plugin, loved it, brought my requests down from near 100 to 40! Huge speed increase with no apparent errors, fantastic work, good job

    **** UNTIL ****

    For some reason, a few of my pages were unable to load the cache file, and therefore did not render correctly: http://prnt.sc/cbhn7k

    I’m pretty sure the issue was started due to changing cookie bars, since in some areas of my site (the working ones) use the new cookie bar. However the ones that used the old one, dont. and you could also see the uncaught referenceerror in the above screenshot relating to the old cookie bar.

    The problem is, i dont know how to clear this, Ive tried de-activating your plugin, and creating a new page and moving the code over, same issue!

    The code must be stuck somewhere within the changes that were made to combine the files, that did not go when i removed the cookie bar plugin. Therefore i assume to fix it, we need to remove that code.

    I have also cleared the cache a billion times and tried different devices, so that wont be the issue.

    Fingers crossed for your help!!

    best regards,
    Marek

    https://ww.wp.xz.cn/plugins/autoptimize/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter marek156

    (@marek156)

    UPDATE: I tried de-activating the new cookie plugin and re-activating the old one. NOW half the pages show the old one, and the others the new one!
    Something is defiantly stuck somewhere….

    – Ive deleted all (known) autoptimize files, same issue, with the same errors as before

    Thread Starter marek156

    (@marek156)

    UPDATE: Its something to do with the URL, If i change the affected page URL to a different one and it loads correctly without the cache not found error.
    This is only a temporary solution though as i need the old URL (SEO)

    What part of your plugin writes the URL?

    Plugin Author Frank Goossens

    (@futtta)

    Morning Marek;
    Based on the above, this is a problem with your page cache (W3TC?) being out of sync with autoptimize.

    Let me explain;
    1. Autoptimize aggregates & minifies CSS/ JS and injects the URL to the optimized files in the HTML.
    2. The HTML is then cached by a page caching plugin.
    3. If you make changes to AO’s config and click the “save changes & empty cache” button, the files created in step 1 are removed but your page cache (from step 2) may still refer to them

    The solution in that case is to purge any page cache, in which case step you’d force everything to re-start from step 1.

    frank

    Thread Starter marek156

    (@marek156)

    Hi Frank

    Thanks for your response!
    Unfortunately this hasn’t worked, ive cleaned the w3tc cache a million times, and it clears it correctly for all pages, even the effected ones. If i change something on the effected page, clear w3tc cache (and click the save changes and empty cache button in AO), it loads the change, but still in the miss-formatted way with the above error

    Marek

    Plugin Author Frank Goossens

    (@futtta)

    very weird marek, there’s no reason I can think of which would cause the cached AO-files to go missing. might there be yet another page cache in play (wordfence falcon engine or maybe your hoster has a caching reverse proxy)?

    Thread Starter marek156

    (@marek156)

    Indeed, its been driving me mad trying to figure it out haha.

    I did indeed have a super cacher running and cloudflare, but part of my testing i removed both of these, and cleaned all their caches, with the same effect.

    Its probably worth noting, that it only happens on the FIRST load of the page, so if you visit the page, it would show the broken page, with the error in the console. But if you exit, and then re-enter the page it loads correctly, im assuming because the browser has cached the files and can find them on second load locally?

    I’ve also tested to see if any elements in the pages effected where causing it, but its identical copy (par the words) to other working pages, so not the issue here either.

    – Marek

    Plugin Author Frank Goossens

    (@futtta)

    so it doesn’t work at first visit, but does at the 2nd? only reason why that would happen is if you are cdn’ing your AO’ed files and the (pull) CDN doesn’t succeed in fetching the AO’d files from the origin server immediately?

    Thread Starter marek156

    (@marek156)

    HI Frank

    Actually cancel that, it happens all the time.
    Its actually just happened again, when attempting to use the inline “above the fold css” feature, same 3 pages, however the error this time is only 1, the 404 for the cache file.

    I changed all the URL’s back to the OLD one, and it worked again, hmm.

    Thread Starter marek156

    (@marek156)

    and again when using the above the fold css, so definitely something to do with that, clearing all the caches has no effect.

    So either:
    A) Its stuck in a cache somewhere
    B) Something to do with the inline / above the fold css feature isnt properly clearing when de-activating

    Plugin Author Frank Goossens

    (@futtta)

    I’m going to need your URL if you’d like me to look into this further Marek ..

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

The topic ‘Cant find cache file’ is closed to new replies.