Fix caching issues hiding the product customizer
Resolve caching plugin or CDN issues that prevent the Chamevo product customizer from loading.
Page caching plugins and CDN caching can serve a stale version of your product page that does not include the Chamevo customizer scripts. This makes the customizer invisible to some visitors even when it works for you.
Symptoms
- The customizer loads for logged-in admins but not for logged-out visitors.
- The customizer works after clearing the cache but stops working for new visitors.
- The customizer loads intermittently β sometimes it appears, sometimes it does not.
- After making settings changes, the old behavior persists on the frontend.
Cause 1: Full-page caching serving stale HTML
Full-page caching plugins cache the entire HTML output of the page. If a page is cached before Chamevo's scripts are enqueued, the cached version will not include them.
Fix:
- Purge all caches in your caching plugin:
- WP Super Cache: Settings β WP Super Cache β Delete Cache.
- W3 Total Cache: Performance β Dashboard β Empty All Caches.
- WP Rocket: Settings β WP Rocket β Clear Cache.
- LiteSpeed Cache: LiteSpeed Cache β Toolbox β Purge All.
- Exclude WooCommerce product pages from page caching. Most caching plugins have an exclusion setting:
- Add
/product/*to the "Do not cache" URL list. - Or exclude pages that contain the
[chamevo]shortcode.
- Add
- Exclude logged-out users from caching on product pages. The customizer loads different scripts based on the product configuration.
Cause 2: CDN caching JavaScript or CSS files
A CDN may cache old versions of Chamevo's JavaScript or CSS files after a plugin update.
Fix:
- Purge the CDN cache after updating Chamevo.
- In your CDN settings (Cloudflare, CloudFront, etc.), purge cached assets or set a shorter TTL for JavaScript and CSS files.
- Some CDNs cache based on URL β after a Chamevo update, the file URLs may include a new version parameter that forces the CDN to fetch fresh files.
Cause 3: Object caching interfering with options
Object caching (Redis, Memcached) caches WordPress options and transients. If Chamevo's settings are cached, changes may not take effect immediately.
Fix:
- Flush the object cache: