• 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 15 replies - 1 through 15 (of 19 total)
  • Thread Starter AR

    (@sohel9875)

    i have put this code on functions.php, but the issue is not solved

    after putting this code, now doesn’t matter cache is 2MB or 20GB still showing blinking red logo.

    note: im using Litespeed server, in case what should I do to solve this issue.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you have to ensure the cache does not grow that fast really, untick “also aggregate inline JS” and/ or “also aggregate inline CSS”, clear all caches and check back later to see if things are more stable?

    Thread Starter AR

    (@sohel9875)

    If I unchecked these option, does it’s effect on site loading speed ?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    inline CSS; rarely
    inline JS; it might, inline JS can block the rendering of the page.

    Thread Starter AR

    (@sohel9875)

    Don’t want to unchecked these option because I’m using jnews theme on my site and for speed optimization it’s necessary two check this option, according to my theme provider said

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you can, but then you’ll have to find out what inline JS or CSS specifically is bloating the cache and only exclude that ??

    not doing that will see the cache grow much to quickly which is an indication of even bigger issues

    Thread Starter AR

    (@sohel9875)

    How can I give you my site login details, so you can find what’s issue,

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I don’t log into sites in the context of free support and exchanging loging details is not allowed here anyway I’m afraid.

    Thread Starter AR

    (@sohel9875)

    so can i contact you by mail because it’s not a right place to share my site login details

    Thread Starter AR

    (@sohel9875)

    in this way, i can’t understand what to do to fix

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    this (older) blogpost tries to explain how you could try to proceed, hope that helps? ??

    Thread Starter AR

    (@sohel9875)

    i discuss about this matter on my LiteSpeed server support desk

    Thread Starter AR

    (@sohel9875)

    and send him my site error logs

    [STDERR] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘increase_cache_max_size’ not found or invalid function name in /home/www.example.com/public_html/wp-includes/class-wp-hook.php on line 303

    Thread Starter AR

    (@sohel9875)

    Litespeed Team Said “this indicates the PHP code was wrong , as my screenshot indicates, these 2 names with red-line-marked must be matched , otherwise it will error out”

    screenshort link: https://prnt.sc/1rjwhoi

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    that’s part of the code snippet you mentioned you’re using (or have been using) to change the max cachesize AR ??

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