Overview
Caching plugins can keep showing visitors an old version of your chatbot after you change its settings. WPiko AI Chatbot prevents this automatically: when you save a setting that affects the chatbot, it clears your caches and gives the chatbot’s scripts and styles a new version, so browsers load the fresh files.
How It Works
When you save a monitored setting, WPiko AI Chatbot:
- Clears the cache of every supported caching plugin it finds, plus the chatbot’s own temporary data.
- Updates the chatbot’s cache version, so its scripts and styles load fresh.
- Shows a notice saying which caches were cleared, or asking you to clear your cache manually if no supported plugin was found.
Since version 2.1.2, this happens once per save, even when one save changes many settings (for example choosing a style preset), so you see a single notice. Each clearing is also recorded in the Debug Log.
Supported Caching Plugins
- WP Rocket
- W3 Total Cache
- WP Super Cache
- LiteSpeed Cache
- WP Fastest Cache
- Autoptimize
- WP Optimize
- Breeze
- SG Optimizer
- Comet Cache
- Cache Enabler
- Swift Performance
- Hummingbird
With any other caching plugin, a server cache or a CDN, clear the cache yourself after changing chatbot settings.
Which Settings Trigger It
- Appearance: name, image, colors, welcome message and other Style settings
- Features: floating chatbot, menu options, sound and transcript download
- Exclusions: pages and devices where the chatbot is hidden
- Messages: proactive greeting and pre-made questions
- Pro features: email capture, contact form, reCAPTCHA, product cards, WooCommerce integration and license changes, added automatically when WPiko AI Chatbot Pro is active
Changes made directly in the database, outside the plugin’s settings screens, don’t trigger it.
For Developers
wpiko_chatbot_cache_monitored_options: add your own option names so changing them clears the cache too.wpiko_chatbot_asset_version: change the version used for the chatbot’s scripts and styles.
Troubleshooting
- Changes don’t appear: check the notice after saving. If it asks you to clear your cache manually, clear your caching plugin, server cache and CDN.
- Old scripts or styles still load: hard-refresh your browser (Ctrl+F5 or Cmd+Shift+R) or test in a private window.
- A custom setting doesn’t refresh: add it with the
wpiko_chatbot_cache_monitored_optionsfilter.