Title: Increase max cache size
Last modified: May 30, 2019

---

# Increase max cache size

 *  Resolved [kerigme](https://wordpress.org/support/users/kerigme/)
 * (@kerigme)
 * [7 years ago](https://wordpress.org/support/topic/increase-max-cache-size/)
 * Hi,
 * I’m close to the 1 Go cache size and get the warning that I’m reaching max cache
   size soon.
 * I don’t want to reduce cache size or delete it (as many topics here ask for).
   I would prefer to **increase** max cache size to 10 Go, so that I don’t get that
   warning anymore.
 * How can I do that? Is it possible to do it without losing this setting everytime
   I update the plugin?
 * Thank you.

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years ago](https://wordpress.org/support/topic/increase-max-cache-size/#post-11588823)
 * First of all re. warning; you should consider cache size the [canary in the coalmine](https://blog.futtta.be/2016/09/15/autoptimize-cache-size-the-canary-in-the-coal-mine/),
   increasing max. size just lets the canary sing a little longer but it is still
   suffering (meaning; your site isn’t performing optimally) 😉
 * Now if you insist AO has a filter that allows you to alter cache size like this(
   you can use [the code snippets plugin](https://wordpress.org/plugins/code-snippets/)
   to safely and easily add this code);
 *     ```
       add_filter('autoptimize_filter_cachecheck_maxsize','increase_ao_cachesize');
       function increase_ao_cachesize() {
           return 1024 * 1024 * 1024;
       }
       ```
   
 * hope this helps,
    frank
 *  Thread Starter [kerigme](https://wordpress.org/support/users/kerigme/)
 * (@kerigme)
 * [7 years ago](https://wordpress.org/support/topic/increase-max-cache-size/#post-11588962)
 * Thanks for the answer, but why do you say the website is suffering because of
   cache size?
 * I have thousands of different posts with views every day. Isn’t it good if every
   post is properly cached?
 * I didn’t inline JS and I get ~0,7s loading speed for the pages thanks to the 
   different cache/CDN/optimizations I use. A bigger Autoptimize cache would make
   it slower?
 * Thanks for any information 🙂
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years ago](https://wordpress.org/support/topic/increase-max-cache-size/#post-11588989)
 * have a look at [https://blog.futtta.be/2016/09/15/autoptimize-cache-size-the-canary-in-the-coal-mine/](https://blog.futtta.be/2016/09/15/autoptimize-cache-size-the-canary-in-the-coal-mine/)
   for reasons why a bigger AO cache indeed is an indication of sub-optimal performance
   kerigeme.
 * also take into account that AO does not do page caching, it only caches the JS/
   CSS.

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

The topic ‘Increase max cache size’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/increase-max-cache-size/#post-11588989)
 * Status: resolved