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

Use cache_key_with_version in page_etag #2365

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Sep 2, 2022

What is this pull request for?

Fixes the page_etag so that it includes the published_at date form the page instead of just the page#id.

Closes #2363

Notable changes (remove if none)

The pages cache_key was including the published_at date before we
changed it to just the cache_version (used by Rails to form the cache_key)

Screenshots

Remove if no visual changes have been made.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen tvdeyen force-pushed the fix-page-cache-etag branch from 7ebc166 to a1aa227 Compare September 2, 2022 06:00
@tvdeyen tvdeyen requested a review from a team September 2, 2022 07:32
Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

The pages `cache_key` was including the `published_at` date before we
changed it to just the `cache_version` (used by Rails to form the `cache_key`)

Closes AlchemyCMS#2363
@tvdeyen tvdeyen force-pushed the fix-page-cache-etag branch from a1aa227 to 45ec14f Compare September 2, 2022 12:07
@tvdeyen tvdeyen enabled auto-merge September 2, 2022 12:08
@tvdeyen tvdeyen merged commit feb5e6f into AlchemyCMS:main Sep 2, 2022
@tvdeyen tvdeyen deleted the fix-page-cache-etag branch September 2, 2022 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Page Caching Issues
2 participants