WP Rocket Compatibility

If you use WP Rocket plugin, and you have issue of not showing calendar, but instead of that see the "Calendar loading...".

Here's how to resolve these issues:

  1. Update Your Booking Calendar to version 10.1.3 or newer
    Ensure you have updated your Booking Calendar to version 10.1.3 or newer. This update addresses cache plugin issues.

    Important! After updating, clear all minimized CSS and JavaScript files and cached pages or posts.

    If you have a paid version, you can request the latest update on this page.

  2. If you activated this option "Delay JavaScript execution" at the WP Rocket > File Optimization page in JavaScript Files section, then you need to add for the option "Excluded JavaScript Files" this value:

    \/jquery(-migrate)?-?([0-9.]+)?(.min|.slim|.slim.min)?.js(\?(.*))?( |'|"|>)
    /booking(.*)/(.*)
    (.*)_wpbc(.*)
    

    WP Rocket and  WP Booking Calendar Exclusion

  3. If you activated this option "Combine JavaScript files (Enable Minify JavaScript files to select)" at the WP Rocket > File Optimization page in JavaScript Files section, then you need to add for the option "Excluded Inline JavaScript" this value:

    wpbc

    and add for the option "Excluded JavaScript Files" this value:

    /jquery(.*)
    plugins/booking(.*)
    

    WP Rocket and  WP Booking Calendar Exclusion