• Resolved emilycestmoi

    (@emilycestmoi)


    Hello,

    There are numerous reports of the minify cache growing in size, I am also experiencing this. The issue is that for every page that is currently uncached, the plugin will create a new set of minified assets, so essentially it is creating a set of minified assets for every page on the site. I have approximately 300000 pages on my site, sooo yeah.

    For example, on one of my site pages that gets cached I get:

    <link rel='stylesheet' id='wpo_min-header-0-css' href='https://www.emmywatch.com/wp-content/cache/wpo-minify/1645638693/assets/wpo-minify-header-e4a082e8.min.css' type='text/css' media='all' />

    Then on another page I get:

    <link rel='stylesheet' id='wpo_min-header-0-css' href='https://www.emmywatch.com/wp-content/cache/wpo-minify/1645638696/assets/wpo-minify-header-fbb680dd.min.css' type='text/css' media='all' />

    Notice that a new set of assets were created for the page when it was cached “/wp-content/cache/wpo-minify/1645638693” vs “/wp-content/cache/wpo-minify/1645638696”

    I would expect that all the pages would use a single set of minified assets until the minified cache was purged, this doesn’t seem to be happening.

    • This topic was modified 3 years, 1 month ago by emilycestmoi.
Viewing 3 replies - 1 through 3 (of 3 total)
  • @emilycestmoi Its by design, WP-optimize creates separate files for each page.

    You can however, purge the minified files from WP-Optimize > Minify.

    Thread Starter emilycestmoi

    (@emilycestmoi)

    I suspect you will need to rethink the design. Pages should use the same set of minified assets, that is how other plugins work.

    Currently I have 3gb of minified assets from about 24hrs worth of visitors, this will grow substantially and is obviously not sustainable.

    Unfortunately I will have to look for other solutions for my site. If you need any development assistance in terms of a redesign of the minify system, I can possibly lend a hand.

    Harshad

    (@bornforphp)

    @emilycestmoi Please use following snippet and add it to your active child themes functions.php file, it will automatically delete the minified files after 3 days

    add_filter( 'wp_optimize_minify_cache_expiry_time', function( $original_value ) {
    return time() - 86400 * 3;
    } );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New minified assets created for every uncached page’ is closed to new replies.