We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
od_url_metric_freshness_ttl
1 parent a2b4a2f commit fe8f282Copy full SHA for fe8f282
plugins/optimization-detective/storage/data.php
@@ -26,7 +26,11 @@ function od_get_url_metric_freshness_ttl(): int {
26
/**
27
* Filters the freshness age (TTL) for a given URL Metric.
28
*
29
- * The freshness TTL must be at least zero, in which it considers URL Metrics to always be stale.
+ * The freshness TTL can be:
30
+ * - Zero: URL Metrics are always considered stale based on timestamp
31
+ * - Positive: URL Metrics older than this value (in seconds) are considered stale
32
+ * - Negative: Timestamp-based staleness checks are disabled, relying solely on ETag changes
33
+ *
34
* In practice, the value should be at least an hour.
35
36
* @since 0.1.0
0 commit comments