Creating ESI shortcode with geoswitch plugin




Wordpress LScache Plugin: Creating ESI shortcode with geoswitch plugin

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, i am using the geoswitch plugin to show different content to certain IPs. But because i am using the litespeed plugin the pages are cached so the plugin does not work accurate. I have tried to use the ESI feature for the shortcodes of the plugin but it does not work because the shortcodes are like these: [geoswitch] [geoswitch_case country_code=us] Custom CONTENT [/geoswitch_case] [/geoswitch] How should i apply the ESI code with these shortcodes to work properly ? Litespeed Report Code: THOSFMTR Hi @miladk, may I know plugin name and link? We can give you feedback after the testing. Also, what if you put ESI at start of the shortcode? Plugin name: Geocode Switch Plugin Link: https://wordpress.org/plugins/geoswitch When i put esi at the start of the shortcode the 2 closing shortcodes will show on my website like this: [/geoswitch_case] [/geoswitch] Please try to use some shortcode creator, for example shortcoder to wrap the start-end shortcode into a single shortcode. Unfortunately the shortcoder plugin could not help me, because the 2 start shortcodes wont work when wrapped into a single shortcode Could you show me your shortcode content? Hi, Do you still need help with this? If so, please provide the previously requested information. Im going to mark this topic Resolved for now, but will re-open it if we hear from you again. Thanks!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference