• Resolved aparnawd

    (@aparnawd)


    Hi,

    We are getting an intermittent error Failed to open stream file_get_contents(public_html/wp-content/cache/autoptimize/css/autoptimize_snippet_07dc120bc3fe14ce95412e187abeb8be.css

    This results in breaking our website and broken version getting stored in Cloudfront Cache.

    Can you please check why this happens

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

    (@optimizingmatters)

    Does the error mention the filename of the file that is trying top opn the autoptimized CSS-file and the line number in that php-file?

    Thread Starter aparnawd

    (@aparnawd)

    Yes, Below is the error that I get.
    file_get_contents(/public_html/wp-content/cache/autoptimize/js/autoptimize_snippet_f4002c96a1f673a88a51803ce2c2f4b0.js): Failed to open stream: No such file or directory in /public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 82

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I’m afraid I’m stumped aparnawd, the code first checks if the file exists (with file_exists()) and only if that is true it tries to file_get_contents it :-/

    Thread Starter aparnawd

    (@aparnawd)

    Hi,

    So what does this error indicate. When I check the cache folder I see that autoptimized js and css files updated time changes frequently without us manually clearing the cache.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    So what does this error indicate.

    I’m afraid the error does not make sense to me, I can’t explain it :-/

    When I check the cache folder I see that autoptimized js and css files updated time changes frequently without us manually clearing the cache.

    it is normal for files to be added, but autoptimize does not remove files by itself, so if you see files are being removed then something else (a plugin or theme, Divi is a known culpirt) is clearing the cache (but should not).

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    any news about what might be removing files from cache aparnawd ?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

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

    have a nice day!
    frank

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Autooptimize JS and CSS File not Found Issue’ is closed to new replies.