Exclude a variable from cache
-
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
The topic ‘Exclude a variable from cache’ is closed to new replies.