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

Entries with edited Post Date do not clear template cache which contains an entry query #4782

Closed
AmericanTrails opened this issue Aug 20, 2019 · 1 comment

Comments

@AmericanTrails
Copy link

Description

As a new entry should cause a cached template (#2959) to clear, so should an edited entry that now meets the query criteria. Or so it seems to me.

Steps to reproduce

  1. Create a new entries query in a template, based on Post Date. For example, show the latest ten entries.
  2. Wrap in {% cache %} tags.
  3. Edit an old entry, say created six months ago, and update the Post Date so that it should appear within the query.
  4. Cached template does not update.

Additional info

  • Craft version: 3.2.10
  • PHP version: 7.0.33
  • Database driver & version: MySQL 5.7.26
@AmericanTrails
Copy link
Author

Ah, never mind. No issue. The entries were not sorted by PostDate, but by entry date.

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

No branches or pull requests

1 participant