How to fully disable CSS/JS cache

Hi Beaver Builder team,

I’m currently using Beaver Builder (version 2.9+, latest) with the VamTam Consulting theme(Latest version) . I’m trying to completely disable the generation of cached CSS/JS files by fl-builder-layout and instead render all builder assets inline in the page’s HTML.

To achieve this, I’ve added the following filters to my theme’s functions.php:

add_filter(‘fl_builder_render_css_inline’, ‘__return_true’);
add_filter(‘fl_builder_render_js_inline’, ‘__return_true’);
add_filter(‘fl_builder_cache_enabled’, ‘__return_false’);

This seems to partially work — I can see that some assets are rendered inline. However, each time I create or update a page, Beaver Builder still generates layout-specific cache files inside the following directory:

/wp-content/uploads/bb-plugin/cache/

For example, I see:

/wp-content/uploads/bb-plugin/cache/8864-layout.css
/wp-content/uploads/bb-plugin/cache/8864-layout.js

Is there a way to fully suppress these *-layout.css and *-layout.js cache files?

Best regards!

Hi (again) I already replied to your other post over at wporg.

The filters you used do not exist, made up by chatgpt.

BB does not have a cache per se, it generates the compiled css and js files based on your layout settings for each page. They are then served up to the user so they dont have to be compiled on every pageload.

For users with no control over caching we added an option under the advanced settings to serve the contents of those files inline rather than linking to them, so cached pages always get working css and js.