Cache and Performance Settings #
DMSI Analytics uses WordPress transients to cache metric query results. These settings control cache behavior.
Metric Cache TTL #
The time (in seconds) that metric query results are cached before the next query hits the database.
Default: 3600 seconds (1 hour)
Lower values = more up-to-date data in charts, but more database queries.
Higher values = fewer database queries, but slightly older data in charts.
Clearing the Cache #
If you have updated settings or run a manual calculation and want charts to reflect the latest data immediately:
- Go to DDLS > Analytics > Settings > Data & Maintenance
- Click Clear Analytics Cache
This clears all analytics transients. Charts will reflect fresh data on the next page load.
Query Profiler #
DMSI Analytics includes a query profiler that logs slow analytics queries (queries taking more than 0.5 seconds). If you see a performance notice in the WordPress admin, a slow query was detected.
To view the slow query log: Settings > Data & Maintenance > View Query Log
This log is useful if you need to report a performance issue to DMSI support.
