First of all re. warning; you should consider cache size the canary in the coalmine, 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 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
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 🙂
have a look at 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.