Regard page cache lifetime.

This article was created when Ver 2.0.6.

QA Heatmap Analytics uses a WordPress mechanism called “nonce” to prevent unauthorized data from being recorded.
Specifically, a token will be generated and data will be recorded only when an actual user accesses the site and within 24 hours.

The nonce security token is a random value and is used as a one-time password. The token has an expiration time, after which the value will result in an authentication error.

(※WordPressCodex「WordPress Nonce」
Reference: Differences in nonce functions used in WordPress secure processing (Anti-CSRF)

>Page cache and token expiration

The token will be output to the HTML source code.

A cached page may expire in the background while its token is still present in the HTML source code of the page. In that case, the HTML source will refer to an invalid token (resulting in an authentication error) and the problem will occur.

Specifically, the data may not be recorded correctly, or no data is recorded at all.

>How to avoid problems

It is recommended that you set the page cache lifetime to 10 hours or less.

Some people may set the cache longer to improve performance, etc., but this will cause misalignment with the nonce token and increase the possibility of problems.

If you think the error is caused by the cache, please clear the cache once.
After the cache is cleared, the HTML will be regenerated and the correct nonce will be referenced again.

Was this article helpful?