• Resolved Jared

    (@jstecklercfanyorg)


    “All of the sudden” — for reasons I can’t seem to identify — my client’s Autoptimize cache size is growing very quickly and needs to be manually purged within 24 hours; cache size warning notification email is coming through and everything.

    More specifically, Autoptimize’s js/ directory is filling up with new files rapidly.

    It’s a WooCommerce-heavy site, so I suspect it may have something to do with some combination of poorly configured payment-gateway plugins and the need for dynamic cart/checkout pages — or so I thought. I excluded the PayPal gateway from being aggregated, and disabled optimization on the cart/checkout pages as well. That helped a bit, but it’s still growing far more quickly than it had previously.

    The only other change/guess I can think of is that Avada Theme recently underwent a fairly considerable update. Could it have something to do with that?

    Here’s an example of a product page: https://comfyhearth.com/product/superior-fireplaces-drc6340-40-direct-vent-contemporary-fireplace/

    And here’s a screenshot of the current Autoptimize settings: https://snipboard.io/w6Zrbs.jpg

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Can you try adding wp-content/uploads/fusion-scripts/ to the JS optimization exclusions maybe?

    Thread Starter Jared

    (@jstecklercfanyorg)

    Thanks man — you truly are my favorite dev for a variety of reasons, and none more so than the fact that you provide such thoughtful, patient and timely support. The entire WordPress community is fortunate to have you.

    After posting, I realized the high volume of scripts found in the wp-content/uploads/fusion-scripts/ directory, and thought that that may have been the culprit for the exploding cache size, but had hoped not, because it felt a little bit like the nuclear option to exclude all Avada Theme-generated JS. And given that this was never an issue previously (prior to Avada v7.4 I guess), I was even more hesitant to assign the “blame” there.

    That said, the issue does indeed seem to stem from the fusion-scripts directory. After excluding the directory about 90 minutes ago, the Autoptimize cache size still sits at just 2%; prior to the exclusion, the cache size was growing to about 12% near-instantaneously (and growing rapidly with each respective page visit from there).

    So that certainly seems to have gotten the cache size under control.

    I guess the only question now is: how much has the Avada change (and, in particular, the new need to exclude the theme’s entire fusion-scripts directory, much like has long been the case for the fusion-styles directory) going to limit the abilities of Autoptimize in an Avada-theme-based environment? Seems like a good bit of Javascript—historically able to be aggregated by AO—will now be left to the capabilities of Avada itself. Hopefully the theme does a better job handling its own scripts than it has historically, because AO has really been the primary reason I’ve found Avada to be reasonably performant at all.

    One more note though on exclusions, and the fact that, historically, it has been a good idea to exclude /fusion-styles, and now that excluding the /fusion-scripts/ directory seems like a must — it looks like the fusion-styles directory is much slimmer than it used to be. I’m wondering if now it might be “safe” to allow AO to aggregate the fusion-styles directory as well..

    I’d be happy to remove wp-content/uploads from the list of CSS exclusions and see how that goes, but before I do that, a couple of more related questions if you don’t mind:

    – Are you familiar with any of the changes brought by the Avada v7.4 update that might pain a clearer picture of what’s going on now? Is Avada creating separate Javascript files for each page/post now?

    – Was the reason for excluding /wp-content/uploads by default on sites built using page builders (like Avada) based in the fact that each page had its own CSS file generated—which, in turn, would cause the AO cache size to grow rapidly—or was it less about cache size and more about correctly applying the proper stylesheet/styles in an appropriate manner?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    – Are you familiar with any of the changes brought by the Avada v7.4 update that might pain a clearer picture of what’s going on now? Is Avada creating separate Javascript files for each page/post now?

    no, I’m afraid I’m not.

    – Was the reason for excluding /wp-content/uploads by default on sites built using page builders (like Avada) based in the fact that each page had its own CSS file generated—which, in turn, would cause the AO cache size to grow rapidly—or was it less about cache size and more about correctly applying the proper stylesheet/styles in an appropriate manner?

    yes, that was the only reason.

    Seems like a good bit of Javascript—historically able to be aggregated by AO—will now be left to the capabilities of Avada itself.

    you could try adding wp-content/uploads/fusion-scripts/ to the “Async” field in Settings -> Autoptimize -> Extra maybe to limit the impact?

    Thread Starter Jared

    (@jstecklercfanyorg)

    Thanks man — feel free to reach out if ever interested in exploring the latest Avada Theme wrinkles and nuances at any point; I’d be happy to help facilitate that to whatever extent I could.

    For now, I’ll give the Async approach a shot, and mark this support thread as resolved.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Autoptimize Cache *Now* Filling Quickly’ is closed to new replies.