Using ESI in shortcode
-
Hi,
I want to exclude my contact form from caching and I’ve read in this article I can simply add
esi+ttl="0"to the shortcode, if plugin does support it.If I understand correctly I can make the plugin support this, by adding this to the main plugin file:
method_exists( 'LiteSpeed_Cache_API', 'purge' ) && LiteSpeed_Cache_API::purge( 'esi.my-shortcode' ) ;Is this correct or should I do more, regarding the plugin?
Guido
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Using ESI in shortcode’ is closed to new replies.