Wordpress Plugin - Purging the Cache

#1
Hello Dear Litespeed-Support
And fellow WWW-Friends


I am developing a Wordpress Plugin, and I have to ensure that our posted content does not get cached. Since I could not find developer documentations, I was wondering if someone could help me.
Basically I need to execute functions, and the generated content can't be cached, since it is crucial. (Ticketing Service with empty/full slots & paiment etc.)

How can I ensure that?
Letting users stil use LiteSpeed Cache instead of an alternative is the goal.

Thanks in advance
XqkbEz
 

qtwrk

Well-Known Member
#2
Hi,

Please check cache API

a simpler solution is that , if your plugin uses shortcode to insert content , then change it from

[shortcode] to [esi shortcode ttl="0"] will simply set this shortcode's content not cached.

this demo could also be helpful

Please let us know if you have any further questions.

Best regards,
 
Top