Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set printable crossword cache time to 60 secs #26688

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

andrew-nowak
Copy link
Member

Occasionally we need to update the crossword data after publication. This happened recently, and while the interactive/playable crossword was very fast to update, we received some comments (https://www.theguardian.com/crosswords/cryptic/29227#comment-165327727, and others) that the /print version remained out of date. I was able to request a cache purge for the page to correct it in this circumstance, but it would be preferable if the cache time was sufficiently short that updates propagated quickly without intervention.

What is the value of this and can you measure success?

Users see the corrected page very quickly, and are not relying on developers watching comments to remember to purge the cache for the page. The new max-cache matches the value for other crossword pages, including the main page and accessible pages and the thumbnail endpoint. I don't believe these pages see a huge amount of traffic, so I wouldn't expect this to cause a significantly increased resource usage.

I looked through the commit history for this line, and it has been unchanged since the page was implemented and no rationale was given for this specific value.

Checklist

Occasionally we needed to update the crossword data after publication. This happened recently, and while the interactive/playable crossword was very fast to update, we received some comments (https://www.theguardian.com/crosswords/cryptic/29227#comment-165327727, and others) that the `/print` version remained out of date. I was able to request a cache purge for the page to correct it in this circumstance, but it would be preferable if the cache time was sufficiently short that updates propagated quickly without intervention.
@andrew-nowak andrew-nowak requested a review from a team as a code owner November 14, 2023 17:26
@andrew-nowak andrew-nowak merged commit 063676c into main Nov 15, 2023
2 checks passed
@andrew-nowak andrew-nowak deleted the an/drop-printable-crossword-cache branch November 15, 2023 10:28
@prout-bot
Copy link
Collaborator

Seen on ADMIN-PROD (merged by @andrew-nowak 16 minutes and 50 seconds ago)

@prout-bot
Copy link
Collaborator

Seen on FRONTS-PROD (merged by @andrew-nowak 19 minutes and 2 seconds ago)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants