Skip to content

Commit fe8f282

Browse files
committed
Update outdated docblock for od_url_metric_freshness_ttl filter
Signed-off-by: Shyamsundar Gadde <[email protected]>
1 parent a2b4a2f commit fe8f282

File tree

1 file changed

+5
-1
lines changed
  • plugins/optimization-detective/storage

1 file changed

+5
-1
lines changed

plugins/optimization-detective/storage/data.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ function od_get_url_metric_freshness_ttl(): int {
2626
/**
2727
* Filters the freshness age (TTL) for a given URL Metric.
2828
*
29-
* The freshness TTL must be at least zero, in which it considers URL Metrics to always be stale.
29+
* 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+
*
3034
* In practice, the value should be at least an hour.
3135
*
3236
* @since 0.1.0

0 commit comments

Comments
 (0)