티스토리 수익 글 보기
{{ message }}
Include active plugins in ETag data and increase default freshness TTL from 1 day to 1 week #1854
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ever since the incorporation of page state into the URL Metric ETag (#1722), the freshness TTL of 1 day has been excessively frequent. Before the ETag, the freshness TTL needed to be a day since there was no mechanism to know whether a recent URL Metric actually corresponded to the current state of the page. This is now changed as the ETag will change whenever a post on the page is updated, the theme is changed, and (new in this PR) a plugin is activated/deactivated.
This PR also adds 3 getter methods which were missing from
OD_URL_Metric_Group_Collectionto access the its private properties.