Hi @adisaputro25,
thanks for making this amazing plugin
You are welcome 🙂
I am using cache plugin like wpfastestcache and cloudflare with cache everything enabled, how to exclude chat form from being cache?
What parts of the chat form are cached? Do you generate dynamically something inside this chat? If not, it’s okay to cache it 🙂
I think chat conversation was being cached by that plugin or cloudflare, so when I refresh the post or page, cache conversation still appear, not empty. Other people or visitor will see the conversation that occurred before.
Did you set an ID to that Chatbot? If yes, the conversation is kept in the browser, until the button “Clear” is used.
When I edit the chatbot via chatbot builder on your plugin and paste the new shortcode generated by your plugin into the post, the post still uses the older shortcode and still acts like the older code/context given before I edit the chatbot.
For example,
First I make the chatbot like a teacher and I paste the code into the post so chatbot acts like a teacher, and then I edit the chatbot again so they can act like a doctor, when I edit the post with the new code, chatbot still acts like a teacher, not a doctor.
Just to clarify this, it is needed to paste new code everytime and update the post when I want the chatbot to act like person A (for example) and then clear the cache?
Oh I see… unfortunately, the only way is to clear the cache here. Shortcodes belong to a page, and are generated when the pages are generated; if that’s cached, it will remain the same. That said, when you edit your page, whatever caching system you use should reset the cache for that page 🙂 Normally, you shouldn’t have this kind of issues.
Thank you for the answer, very helpful 🙂
I hope so 🙂 And if you find what was the problem exactly, don’t hesitate to share.