Title: random 404 autoptimize errors
Last modified: March 21, 2019

---

# random 404 autoptimize errors

 *  Resolved [dapojaja](https://wordpress.org/support/users/dapojaja/)
 * (@dapojaja)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/random-404-autoptimize-errors/)
 * my website farmersnestng.com crashes randomly. On investigation using chrome 
   developer console i got this [https://imgur.com/j5Ss2jz](https://imgur.com/j5Ss2jz)
   pls help resolve this issue. I love autoptimize and won’t have it any other way
    -  This topic was modified 7 years, 3 months ago by [dapojaja](https://wordpress.org/support/users/dapojaja/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frandom-404-autoptimize-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/random-404-autoptimize-errors/#post-11339707)
 * As Autoptimize does not purge it’s own cache, either the cache was cleared manually(
   by changing settings and clicking “save settings and clear cache”) or you have
   some other plugin/ script clearing `wp-content/cache/autoptimize`. clearing your
   page cache in such cases should fix such issues.
 * hope this helps,
    frank
 *  Thread Starter [dapojaja](https://wordpress.org/support/users/dapojaja/)
 * (@dapojaja)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/random-404-autoptimize-errors/#post-11339880)
 * thanks for prompt reply. I have disable and removed this plugin: Autoclear Autoptimize
   Cache
 * Once again thanks for saving many lives
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/random-404-autoptimize-errors/#post-11340046)
 * You’re most welcome [@dapojaja](https://wordpress.org/support/users/dapojaja/),
   feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂
 *  [Kreativo Pro](https://wordpress.org/support/users/kreativopro/)
 * (@kreativopro)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/random-404-autoptimize-errors/#post-11345102)
 * Hi [@dapojaja](https://wordpress.org/support/users/dapojaja/)
 * You can use this code instead:
 *     ```
       /* Automatically clear Autoptimize Cache if it goes beyond 256MB */
       if (class_exists('autoptimizeCache'))
       {
           $myMaxSize = 256000;
           $statArr=autoptimizeCache::stats(); 
           $cacheSize=round($statArr[1]/1024);
   
           if ($cacheSize>$myMaxSize)
           {
              autoptimizeCache::clearall();
              header("Refresh:0");
           }
       }
       ```
   
 * Shared here: [https://wordpress.org/support/topic/contribution-autoptimize-cache-size-under-control-by-schedule-auto-cache-purge/](https://wordpress.org/support/topic/contribution-autoptimize-cache-size-under-control-by-schedule-auto-cache-purge/)
 * Cheers 🙂
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/random-404-autoptimize-errors/#post-11345290)
 * that would likely cause the same issues as the plugin dapojaja removed [@kreativopro](https://wordpress.org/support/users/kreativopro/)
   😀
 *  [Kreativo Pro](https://wordpress.org/support/users/kreativopro/)
 * (@kreativopro)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/random-404-autoptimize-errors/#post-11345340)
 * Oh ok [@optimizingmatters](https://wordpress.org/support/users/optimizingmatters/)
   So the best thing is to clear cache manually?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/random-404-autoptimize-errors/#post-11345344)
 * the best thing is to configure AO in such a way that the cache does not grow 
   that quickly, more info in [the AO FAQ](https://wordpress.org/plugins/autoptimize/#faq)
   😉

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

The topic ‘random 404 autoptimize errors’ 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/)

## Tags

 * [speed up](https://wordpress.org/support/topic-tag/speed-up/)

 * 7 replies
 * 3 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/random-404-autoptimize-errors/#post-11345344)
 * Status: resolved