• Resolved zackeryfretty

    (@zackeryfretty)


    Hi,

    I’m having an issue with Super Page Cache and Beaver Builder where the cached pages seem to want to point to old versions of Beaver Builder’s layout.css which causes the page content to look broken. Clearing the cache solves the problem but it quickly returns.

    I can see in the console the layout.css (and layout.js) files 404ing. Is this plugin still compatible with Beaver Builder? Oddly I’ve never had the issue before outside of just this one site and it only started happening over the last few months.

    I tried excluding the /cache/ directory from Super Page Cache and enabled the “Proxy Cache Clear” setting in Beaver Builder without luck.

    Any tips? Would love to keep using this amazing plugin.

Viewing 1 replies (of 1 total)
  • Thread Starter zackeryfretty

    (@zackeryfretty)

    Just to follow up on this I was able to get it resolved with the help of Beaver Builder’s support.

    Here’s the snippet that fixed it, I hope it helps someone in the future!:

    $actions = array(
      'fl_builder_cache_cleared',
      'fl_builder_after_save_layout',
      'fl_builder_after_save_user_template',
    );
    
    foreach( $actions as $action ) {
      add_action( $action, function() {
        do_action( 'swcfpc_purge_cache' );
      });
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Beaver Builder layout.css/js 404ing’ is closed to new replies.