nonces and cache expiry
-
How does cache expiry work? I’m trying to find a setting that would work in sync with wordpress nonces. WordPress nonces work like this by default:
“WordPress uses a system with two ticks (half of the lifetime) and validates nonces from the current tick and the last tick. In default settings (24h lifetime) this means that the time information in the nonce is related to how many 12h periods of time have passed since Unix epoch. This means that a nonce made between midday and midnight will have a lifetime until midday the next day. The actual lifetime is thus variable between 12 and 24 hours. The example above will give you nonces that are valid for 2-4 hours.”
How could I get this cache plugin to work properly? I keep having issues with my wp nonce depending ajax calls with cached pages where the nonce is already expired but the cached page is still trying to use it and therefore the process results in error.
I’ve tried to have the cache expiry set to 12 hours but that doesn’t seem to work.
- The topic ‘nonces and cache expiry’ is closed to new replies.