Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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

    #1185111

    Hi 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,
    Nikko

    #1185459

    Hi 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

    #1185558

    Hi 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,
    Nikko

    #1186559

    Ok, 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, 9 months ago by scotthco.
    #1186910

    Hi 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,
    Nikko

    #1192068

    Hi 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

    #1192679

    Hi 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,
    Nikko

    #1219318

    We 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.

    #1219408

    Hi,

    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,
    Jordi

    #1219410

    Hi,

    Please refer to this post – https://kriesi.at/documentation/enfold/optimization/#troubleshoot :)

    Regards,
    Yigit

    #1219423

    Hi Yigit,

    It works correct!

    Thanks for all!

    Best regards,
    Jordi

    #1219425

    Hi,

    You are welcome! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Clean Up Dynamic_Avia folder’ is closed to new replies.