• Resolved gabrielefortunato

    (@gabrielefortunato)


    Good morning,

    I am using your plugin which give a good speed to my site but I have a problem: the total size of the website is 1.6 GB + 700 MB of Cache, as per Server folder size.

    I checked on the plugin Minify statistic and the size is the same under Total Cache/Minify Status (Older, non expired, temporary files, etc…)

    How is it possible it creates this huge size of cache. Page Preload is Not enabled.

    So, problem are:

    1) how to avoid this big cache size
    2) how to clean it (Reset The Minified Files does not cancel it).

    Thank you so much !
    Gabriele Fortunato

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Gabriele,

    1) how to avoid this big cache size

    Minify keeps some stale files for up to 30 days, in case they would be referenced in a cached version of the page.
    The only way to change this at the moment is to reduce the time the cache is kept, using a filter. For example the following will reduce the duration from 30 to 7 days.

    add_filter( 'wp_optimize_minify_cache_expiry_time', function( $original_value ) {
    	return time() - 86400 * 7;
    } );

    We’ll probably add settings for that in the future, but at the moment, that’s the way to do it.

    2) how to clean it (Reset The Minified Files does not cancel it).

    In order to purge everything, you can go to Minify > Advanced and turn on “Enable debug mode”.

    Then in Minify status, you’ll have a “Delete all the files generated by minify”.
    This should purge everything.

    Best wishes,
    Marc

    Thread Starter gabrielefortunato

    (@gabrielefortunato)

    Thank you @marcusig
    This works really well.
    Kind regards
    Gabriele

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mify Cannot Purge Total Cache’ is closed to new replies.