Exclude a variable from cache




Wordpress LScache Plugin: Exclude a variable from cache

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, We use LS Cache and have an issue because some variables remains in cache and then, our form needs a new nonce?. In order to include the whole variables set in our plugin thru the WP backoffice, in a JS file, we use the following WP function : => wp_localize_script( totum-addon-give-front, aj, $aj ) The matter is that the variable $aj which contains all parameters, in to updated and remains in cache. Then, we ask for another nonce and the website reload endlessly :((( We exluded the JS file from the cache, but nothing better. Please, how could we do to prevent LS plugin from caching the $aj variable ? Thanks a lot Gil Hi, please check this page best regards,



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



Reference