Wordpress LScache Plugin: How to setup LS Cache to work with Geolocation IP Detection plugin?
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello How should LS Cache be configured for the Geolocation IP Detection plugin to work correctly? I use a shortcode of the plugin Geolocation IP Detection that serves to show the visitors city. Currently it misdetects the cities of the visitors. When I clear the cache it works fine for a while and then it shows wrong cities again. It only shows the correct city when I am logged in. PS: As I said before, the problem is solved momentarily by clearing cache. So since the problem is the LS Cache plugin, I tried to uninstall it but the problem continued. I guess after uninstalling LS Cache, I have to delete some files or tables from the database for the uninstall to be complete. What do I have to erase? Hi, if you use shortcode , you can use ESI shortcode and see how it goes go to cache -> ESI , enable ESI, then change your shortcode e.g. [my_shortcode] to [esi my_shortcode ttl= 0 ] Once you disable/uninstall LSCWP, you can verify the HTTP response header, make sure you dont see x-litespeed-cache header if you dont see cache header, that means LSCWP is not longer serving you any cache Best regards, Hello Thank you! It seems it is working now. I will test until tomorrow. ttl= 0 means No cach? , right? By the way, I realized the plugin was working even after uninstall it. Why does Litespeed Cache keep working after uninstalling? Why wasnt it completely uninstalled? Regards Hi, yes, ttl= 0 means do not cache that ESI block may I know what is your environment ? and please check HTTP response header , do you see x-litespeed-cache header ? Best regards, Hello Thanks for replying fast! It seems the problem was fixed with [esi my_shortcode ttl= 0 ] By the way, It seems this problem appeared recently. Maybe with the last update of LS Cache? Regards PS: Just curious, Usually deleting the plugin LSCache will delete all files and database data from the plugin? Hi, I dont know , last update should not break such related case. when delete LSCWP , it will remove the files, but certain DB record will probably be remained , like image optimization informations you can search with name in litespeed and remove them if you want to Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference