Wordpress LScache Plugin: The Nonce Problem
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi there, Im having an issue using Optimizepress with Litespeed cache and it is taking me to the brink of insanity.. On pages with a checkout, sometimes an error comes up saying your nonce is not verified Ive been going over this with Optimizepress support and a developer for a month but we are still yet to come up with a fix. I understand (basically) why this is happening but not how to fix it. we have tried ESI but not understanding it, I cant say if weve done it right or not. Im at my wits end. Because it only happens sometimes there seems to be no good way to test whether any fix works other than logging onto the page 3-4 times a day. Any help is muuuchh appreciated, youre my only hope! Thanks Jake The page I need help with: https://www.jakekarno.com/special-offer/firestarter/offer-expired Hi, Could you please kindly ask them the nonce name they are using ? Best regards, Thanks for your reply. This is the list. Apparently the rest_nonce is the main culprit but the others relate to the same checkout form. rest_nonce opc_stripe_nonce opc_calculate_tax_nonce opc_coupon_apply_nonce Thanks Hi, Please enable ESI then in ESI nonce list add rest_nonce opc_stripe_nonce opc_calculate_tax_nonce opc_coupon_apply_nonce into it, save , purge all if above doesnt work , try rest_nonce private opc_stripe_nonce private opc_calculate_tax_nonce private opc_coupon_apply_nonce private Best regards, Thanks! Its currently set up like it is in your first example but I will try the second. Is there any way to test it other than opening the page as often as possible to check? It only shows up sometimes. Its quite frustrating! J Hi, yeah well , thats the thing bothers me as well. but nonces have life span for 12 hours , you should know if it works or not after that time. Best regards, Hi there, Unfortunately it happens randomly but I just loaded the page and its still happening. So neither ESI solution has worked. Is there anything else I can do? Thanks Jake Hi, okay , please try: 1. go to toolbox -> export/import -> export your current setting 2. after you exported setting , now go to Cache page , set all TTL that is higher than 39600 , to 39600 , which is 11 hours , leave the ones the is smaller than 39600 intact, , save and purge all, then see how it goes ???- if above one didnt work , which I feel might be in rare case, nonce is set into dynamic generated inline JS , and JS file has been minified/combined and saved into cache, in this case, I would like you to try reset to default setting , enable ESI , and put previously mentioned ESI nonce into list , and see how it goes Best regards, Hi, Im going to mark this topic Resolved , due to lack of activity. If you still need help, please feel free to re-open it. Best regards, So far I think the TTL settings have worked. Many thanks for all your help. Best Jake
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference