-
Notifications
You must be signed in to change notification settings - Fork 772
[CMSP-993 CMSP-1055] New default cache TTL changes #8953
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
Conversation
|
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-8953-documentation.appa.pantheon.site |
|
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-8953-documentation.appa.pantheon.site |
source/content/guides/wordpress-configurations/05-wordpress-cache-plugin.md
Outdated
Show resolved
Hide resolved
source/releasenotes/2024-04-xx-pantheon-page-cache-default-ttl.md
Outdated
Show resolved
Hide resolved
|
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-8953-documentation.appa.pantheon.site |
changes made, ready for re-review
|
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-8953-documentation.appa.pantheon.site |
|
There are a few more references to the previous default, for example: https://github.com/pantheon-systems/documentation/pull/8953/files#diff-1cd1e29f23a107b75b778ae3d0d9c4d1b26471ebad093a28bed851877ffdb9d4R18 And a few sections on this page: https://docs.pantheon.io/guides/wordpress-pantheon/plugins#pantheon-page-cache |
|
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-8953-documentation.appa.pantheon.site |
|
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-8953-documentation.appa.pantheon.site |
source/releasenotes/2024-04-xx-pantheon-mu-plugin-1-4-0-update.md
Outdated
Show resolved
Hide resolved
stevector
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jazzsequence @scottbuscemi I made some comments here on "TTL" vs. "max-age" but I'm not sure if that's a linguistic battle worth fighting since we have TTL all over the place. What do you think?
source/releasenotes/2024-04-xx-pantheon-mu-plugin-1-4-0-update.md
Outdated
Show resolved
Hide resolved
source/content/guides/wordpress-configurations/05-wordpress-cache-plugin.md
Show resolved
Hide resolved
|
Could we also audit the following doc for accuracy and update the WP tab to suggest using the new filter |
|
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-8953-documentation.appa.pantheon.site |
|
@rachelwhitton The original code snippet isn't wrong. There is a perhaps small but significant difference in the approach between the two methods. The new filter returns no I guess my question is, is it worth adding more code snippets to suggest using the filter as an alternative to what's currently there, but not remove it? |
In some automated testing of caching a few years ago we found that it was possible to get cache hits from responses with a
This strikes me as a situation where the Diátaxis documentation framework should help. Is the documentation here a tutorial, explanation, guide, or reference? I think this "bypassing cache" page is closest to a "How-To Guide." My expectation is that people come to this page in the context of attempting to accomplish a specific work task and they need the necessary steps to accomplish the task of bypassing cache for a real website (different from a general tutorial that's teaching caching concepts). As a "How to Guide" it is acceptable to include "if" statements.
We run the risk of supplying the reader with too many options and not enough guidance on how to pick an option. |
see #8953 (comment) Co-authored-by: Steve Persch <[email protected]>
|
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-8953-documentation.appa.pantheon.site |
Yeah, I tend to feel the same. I think it's fine to leave the existing snippet for now. I'd like to see how the filter is used in the wild anyway. We have documentation for the filter in the mu-plugin repository and we can publish some of that same documentation in the pantheon-advanced-page-cache plugin readme when we update that later this quarter. |
replaced TTL with max age throughout
|
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-8953-documentation.appa.pantheon.site |
|
1.4.0 of the mu-plugin has been released. https://github.com/pantheon-systems/pantheon-mu-plugin/releases/tag/1.4.0 |
|
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-8953-documentation.appa.pantheon.site |
|
@stevector Any chance for a review so we can merge this in? |
stevector
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woo! Thanks for the updates @scottbuscemi and @jazzsequence.
Shall I merge now?
|
@jazzsequence Should we wait until the next WP release? Otherwise the docs won't match customer experience. |
@scottbuscemi Probably? Could we take a few minutes to diagram out the interrelated parts and when we take which actions? That could be valuable internally and maybe more so externally. Like, I could interview you and @jazzsequence about the moving pieces in play (like https://www.youtube.com/watch?v=6pDMf9e3ZNM) There's value and trust-building in making visible how we handle these sorts of interrelated updates. |
|
Let's indeed hold off until the next WP release since that's when it'll be update-able for most customers. |
Summary
pantheon_cache_default_max_agefilterDependencies and Timing
pantheon-mu-pluginis availableRelease:
Post Launch
Do not remove - To be completed by the docs team upon merge:
/old-path/=>/new-path/(if applicable)