Documentation Troubleshootings Troubleshoot with Cache Plugins

Troubleshoot with Cache Plugins

Sometimes the Cache Plugins are conflicting with WP-Statistics. On the below, we are the most common solutions to troubleshoot the issue with Cache Plugins

Cache plugin option

Make sure the Use Cache Plugin option in WP-Statistics > Settings > General is enabled. (If it’s already enabled, try to disable it and wait for a while, then check out the Overview page)

 

Excluding WP-Statistics’s REST-API

Ignore the plugin’s REST API namespace for caching. Our namespace is: wp-json/wp-statistics/v2/hit (You can exclude it from caching or disable REST API caching.)

 

Debugging Ajax Response

Sometimes you can debug yourself. Just go to one of the single posts (In private browsing) and enable the Inspect > Network > XHR, then refresh the page and click on the request and see the response.

Cookie nonce is invalid

This means that your site’s nonce tokens are being cached and reused beyond their designated time frame.

WordPress nonces can be used for 12 hours before they become invalid. To avoid expired nonces from being sent to WP-Statistics you must ensure pages with WP-Statistics are not cached, or not cached for longer than 12 hours