-
AuthorPosts
-
February 16, 2020 at 11:34 pm #1185033
Hi Folks!
I just noticed that there’s upwards of 2GB in my dynamic_avia folder. I’m pretty sure there should not be THAT much stuff in there. Can someone tell me what I can delete from this folder safely? Or since it’s supposedly “dynamic”, can I simply empty the entire folder, and whatever needs to be there will be put back the next time pages are generated?
Thanks!
Scott
February 17, 2020 at 6:22 am #1185111Hi Scott,
The content inside dynamic_avia folder is automatically generated, you may need to re-save Theme Options in order to generate those scripts and styles.
But just to make sure, create a backup first before doing this :)Best regards,
NikkoFebruary 17, 2020 at 11:25 pm #1185459Hi Nikko:
Thanks for the quick reply. I’ll certainly backup the contents of that folder before doing anything. Might I need to resave anything else, or just theme options?
Scott
February 18, 2020 at 8:55 am #1185558Hi Scott,
I think just the contents of the folder should be enough, but if you want to just make sure, you can backup the whole site.
As for resaving, it’s just the Theme Options since it triggers the regeneration of those styles and scripts.Best regards,
NikkoFebruary 20, 2020 at 10:12 pm #1186559Ok, this just became a bigger issue. In the live site, there’s 2.4GB (that’s right, GIGAbytes) of stuff in the dynamic_avia folder, mostly avia-footer-scripts-*.js and avia-merged-styles-*.css. I put a copy of the site on my local machine because I’m working on a project, and I just discovered that new copies of these avia-footer-scripts-*.js and avia-merged-styles-*.css files are being produced for every page load when the page is not already cached (by Cache Enabler). I don’t know why they would be generated with every page load. I thought they were just generated when you saved the theme options. I also don’t know why unique versions would be produced instead of just replacing the existing ones. Perhaps someone should take a look at the code that generates these dynamic files.
So far I’ve found two of my sites that are doing this. One is running Enfold 4.7.1, the other 4.7.2.
I’ll paste the settings from the Theme Options / Performance tab below for the site running 4.7.2. I use the Cache Enabler caching plugin for both, but it is turned off on my local development machine, which appears to be why the files are generated with each page load. Please tell me if there’s something I can change in the performance settings to fix this, of if some malfunctioning performance feature needs to be disabled.
Thanks!
Scott
Performance Tab Settings –
CSS file merging and compression – On
Javascript file merging and compression – On
Http security level for checking readability of merged files – Use ssl if needed (default)
Disabling of template builder elements – Load only used elements
Scan Widgets for Theme Shortcodes – Do not scan
Self hosted videos and audio features – Default-only load when needed
Disable external video features – Off
Disable the blog – Off
Disable Emoji/Smiley Support – On
Disable jQuery Migrate – On
Load jQuery in your footer – On
Load google fonts in footer – Off
Delete old CSS and JS files? – Off- This reply was modified 4 years, 10 months ago by scotthco.
February 22, 2020 at 6:30 am #1186910Hi scotthco,
I’m unable to reproduce the issue you mentioned even when the settings are the same as what you have described.
Can you try to delete the old CSS files then flush out caching, disable all plugins temporarily and check if it still does regenerates CSS files on every page load?Best regards,
NikkoMarch 10, 2020 at 11:58 pm #1192068Hi Nikko:
Sorry it took me so long to do some more checking, but I do have some more info for you.
On my development machine, I deactivated all plugins, including Cache Enabler. I then backed up and removed the dynamic_avia folder contents.
I made a small tweak to the theme settings, saved, and the files generated were index.php, bennetts_bbq.css, and avia-gutenberg-dynamic-bennetts_bbq.css (no other css of js files). I then hit the home page, and avia-footer-scripts-blahblah.js and avia-merged-styles-blahblah.css were generated. Hit the home page again, and two more of these were generated.
I went back to theme settings / performance tab and turned off both CSS and JS file merging and compression. THEN it stopped generating those two files with each pageload. Turned on CSS file merging and compression, it started producing the CSS files with each pageload again. Turned CSS off and JS on, and it stopped producing the CSS files and started producing the JS files.
So it’s definitely got something to do with these two performance settings. It’s quite easy for me to duplicate; not sure why you can’t.
Scott
March 12, 2020 at 4:57 pm #1192679Hi Scott,
Can you create a staging server and give us wp-admin and FTP access?
We will need to further check on this issue on your server since I could not replicate this issue on my end.
Just post the details in private content.Best regards,
NikkoJune 4, 2020 at 9:41 am #1219318We encountered the same thing. 28.000 files generated, 4GB. Disable JS and CSS merging and compression in hopes that it stops filling up the server.
June 4, 2020 at 2:28 pm #1219408Hi,
We encountered the same thing. Infinites files and 5.3GB on this folder.
Why is it happening? Which one should it be the correct configuration of performance tab settings?Best regards,
JordiJune 4, 2020 at 2:37 pm #1219410Hi,
Please refer to this post – https://kriesi.at/documentation/enfold/optimization/#troubleshoot :)
Regards,
YigitJune 4, 2020 at 3:22 pm #1219423Hi Yigit,
It works correct!
Thanks for all!
Best regards,
JordiJune 4, 2020 at 3:25 pm #1219425 -
AuthorPosts
- The topic ‘Clean Up Dynamic_Avia folder’ is closed to new replies.