Various issues (session expiration for login and ajax pages )




Wordpress LScache Plugin: Various issues (session expiration for login and ajax pages )

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I am experiencing some issues that seem to be routed in a cache issue. 1 ? I run a multi vendor store and in some cases need to switch users or log in and out. I often get this error message on modal login from the theme. https://www.dropbox.com/s/q7oww9vnec447zn/Screenshot%202021-03-07%20at%2010.52.14.png?dl=0. The only solution is to go the the woocomerce account page to login, which never gives this issue. If cache is switched off I dont get this problem. 2 ? I have disabled caching for logged in users and I notice that when visiting home page as a guest in some cases the pagination button does not load the products? https://www.dropbox.com/s/al75nc72bn159gz/Screenshot%202021-03-12%20at%2012.13.07.png?dl=0. How to resolve? 3 ? is there a way to exclude caching all Ajax requests? 4 ? how to exclude caching checkout cart? This topic was modified 1 year, 8 months ago by ghyootjp. The page I need help with: http://www.mytanklife.com Hi, 1) this is most likely nonce issue , where does that login page come from ? your theme or plugin or something ? 2) maybe you can try disable optimization for login user as well , and see how it goes 3) default no-cache on ajax 4) default no-cache on my account , checkout, cart page Best regards, Hi, 1) The popup login system/page comes from the theme. It can be deactived entirely and or re-directed to the standard woocomerce my-account page however I do like how the thing works. Is there some info I can source to put on the exclusion list to avoid the Nonce issue? Does a Nonce issue linked/related to caching? 2) I do not understand your suggestion? At present I have de-activated caching for logged in user. 3) ok, noted 4) Ok, noted Hi, 1) yes, nonce is like a validation token which has expiration , and when page is cached , nonce is also cached , and when nonce is expired while page is still using the expired nonce , it gives error like that please contact your theme author and kindly ask them what is the nonce name they used for pop up login page , once you get the nonce names, I will assist you for next steps 2) no , I mean , page optimization -> tuning setting -> at bottom of this page, there is an option to exclude role from page optimization , see how that goes , purge all after you set it Best regards, Hi, message from theme author below. Please note request from Theme author at the bottom. They would like to integrate some info into theme for better compatibility with LS Cache. here is nonces which is used in forms first is for registration second is for login there are also some other nonces for ajax nonce => wp_create_nonce(ajaxed-nonce), hotnonce => wp_create_nonce(hotnonce), wishnonce => wp_create_nonce(wishnonce), searchnonce => wp_create_nonce(search-nonce), filternonce => wp_create_nonce(filter-nonce), helpnotnonce => wp_create_nonce(commre-nonce), favornonce => wp_create_nonce(favornonce), comparenonce => wp_create_nonce(compare-nonce), ask them to provide me code for their filters, so, I will add it to core files of theme for better support of their plugin following pages also have issue where data does not display sometimes unless all cache is flushed https://www.mytanklife.com/wishlist/ https://www.mytanklife.com/compare-products/ Hi, since you have the nonce names , then please go to Cache -> ESI , enable ESI , and then in the ESI nonce list filed , add these nonce names into it , save and purge , then see how it goes Best regards, Thanks, is there any recommendation on how to save the info into the box? or do I just paste as is? nonce => wp_create_nonce(ajaxed-nonce), hotnonce => wp_create_nonce(hotnonce), wishnonce => wp_create_nonce(wishnonce), searchnonce => wp_create_nonce(search-nonce), filternonce => wp_create_nonce(filter-nonce), helpnotnonce => wp_create_nonce(commre-nonce), favornonce => wp_create_nonce(favornonce), comparenonce => wp_create_nonce(compare-nonce), Hi, no no no in case of wp_nonce_field( ajax-login-nonce, register-security ) , register-security is the nonce name in case of nonce => wp_create_nonce(ajaxed-nonce), , ajaxed-nonce is the nonce name extract the names and add them into list , save and purge all Best regards, Thank you, I tried that and so far all seems well. Are you able to send info as requested by theme author? ask litespeed to please provide code for their filters, so, we will add it to core files of theme for better support of their plugin Hi, certainly, please relay this link https://docs.litespeedtech.com/lscache/lscwp/api/#convert-custom-nonce-to-esi Best regards, Thank you, I will forward to theme author Hi, please let us know if you need any further assistance from our side best regards,



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



Reference