Hi
I recently noticed that on one of the site where I use Enfold, the dynamic-avia folder is huge (12 GB).
When I try to delete the folder or files in it, they are immediately regenerated.
I already made the following settings:
– Fix WP bug, disable unique timestamps (also tried “add unique timestamps)
– Delete old CSS and JS files
Please help.
Hey Julien,
Thank you for the inquiry.
Are the newly generated files still 12 GB in size? How many posts and pages are there in total? It might be due to the post css files, which is a dedicated stylesheet or css file for each post. You can disable this feature by adding this filter in the functions.php file.
/**
* Filter to skip css file generation.
* You can add logic to skip for certain pages/posts only.
*
* @since 4.8.6.1
* @param boolean $create
* @return boolean true | false or anything else to skip generation of css file
*/
function custom_avf_post_css_create_file( $create )
{
return false;
}
add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );
Best regards,
Ismael
Thanks Ismael
I added this snippet, it didn’t seem to work at first (still couldn’t delete the folder with my FTP client),
but then I managed to delete the folder through SiteGround SiteTools panel (their proprietary equivalent to cPanel).
Maybe it would have worked without your snippet, couldn’t say.
Anyway, thank you for your help.
Hi,
Glad Ismael could help! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy your holidays! :)
Best regards,
Yigit