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

Review Usage Of CacheTime.Facia For Image, Media And Gallery Content #27628

Open
JamieB-gu opened this issue Nov 20, 2024 · 0 comments
Open

Review Usage Of CacheTime.Facia For Image, Media And Gallery Content #27628

JamieB-gu opened this issue Nov 20, 2024 · 0 comments
Milestone

Comments

@JamieB-gu
Copy link
Contributor

When this content is rendered by DCAR, we're using CacheTime.Facia to set the cache time:

post(ws, json, Configuration.rendering.articleBaseURL + "/Article", CacheTime.Facia)

post(ws, json, Configuration.rendering.articleBaseURL + "/AppsArticle", CacheTime.Facia)

post(ws, json, Configuration.rendering.articleBaseURL + "/Article", CacheTime.Facia)

post(ws, json, Configuration.rendering.articleBaseURL + "/AppsArticle", CacheTime.Facia)

post(ws, json, Configuration.rendering.articleBaseURL + "/Article", CacheTime.Facia)

This is designed for "facia" content (fronts, tag pages, etc.), so may not be what we want for articles. It might be preferable to instead base the cache time on the metadata, as we do for most other articles:

post(ws, json, Configuration.rendering.articleBaseURL + path, page.metadata.cacheTime)

post(ws, json, Configuration.rendering.interactiveBaseURL + "/Interactive", page.metadata.cacheTime, 4.seconds)

post(ws, json, Configuration.rendering.interactiveBaseURL + "/AMPInteractive", page.metadata.cacheTime)

post(ws, json, Configuration.rendering.interactiveBaseURL + "/AppsInteractive", page.metadata.cacheTime, 4.seconds)

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

No branches or pull requests

1 participant