• Resolved AR

    (@sohel9875)


    Hello Team

    on y site cache size is continuously getting bigger, so i search in the internet and found a solution to increase cache size

    /* Increase Autoptimize Cache Max Size */
    function increase_autoptimize_cache_max_size( $size ) {
    /**
    * Formula: GB * MB * KB * B
    *
    * Use MB : MB * KB * B (Example 600MB: 600 * 1024 * 1024 )
    * Use GB : GB * MB * KB * B (Example 4GB: 4 * 1024 * 1024 * 1024 )
    */
    $size = 50 * 1024 * 1024 * 1024;

    return $size;
    }
    add_filter( ‘autoptimize_filter_cachecheck_maxsize’, ‘increase_cache_max_size’, 99 );

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    these 2 names with red-line-marked must be matched , otherwise it will error out

    obviously, but that’s part of the code you found on the web and it just aims to hide the cache size issues, not _really_ fix them ??

    Thread Starter AR

    (@sohel9875)

    cache size now increased, but I know it’s not a permanent solution, then i what i do for fix, cache size are increase in 8 hours more than 20GB. before im using litespeed cache plugin i didn’t face this kinds cache size issue

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well litespeed cache likely did not aggregate inline JS and/ or CSS, which you insist on doing as per your theme developer’s advice, so you’ll need (someone) to identify what needs to be excluded from CSS/ JS aggregation using the methodology from the blog post I linked? ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No feedback so I assume this got resolved AR, but feel free to follow up if you still encounter issues!

    have a nice day!
    frank

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Logo is flashing red with Autoptimize plugin’ is closed to new replies.