Hello everyone,
I’m hoping to make some progress here. Because so far I have not found a real solution. There are situations where the directory wp-content/uploads/dynamic_avia/avia_posts_css is empty in my wordpress blog. This also deletes the CSS file ( post-4812.css ) that is usually stored there.
I now use a Redis Object Cache plugin (from Till Krüss) for caching. After saving the theme settings, for example, this CSS file is removed but not created again. As a result, the background is missing on my start page.
I have already followed the tips at https://kriesi.at/documentation/enfold/optimization/#troubleshoot and ‘Merge and compress’ is deactivated. In addition, ‘Delete old CSS and JS files’ is deactivated in the theme settings. However, the file is not recreated. Only when I clear the Redis cache once or deactivate the Redis cache permanently does the problem go away and the background is visible again.
Maybe one of you has a decisive hint for me.
Thank you very much
Hey Patrick,
You could try to disable the post CSS file creation using this filter in functions.php:
/**
* 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,
Rikard
Hello Rikard,
I will try this. If it works, that would be great.
best regards
Patrick