10000 Add cache tags by fritzmg · Pull Request #404 · alnv/catalog-manager · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add cache tags #404

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add cache tags #404

wants to merge 1 commit into from

Conversation

fritzmg
Copy link
Contributor
@fritzmg fritzmg commented Apr 23, 2025

I am not sure how much support this repository and branch still gets - so feel free to ignore :)

Currently when editing a record in the back end, the HTTP cache is not cleared, since no cache tags are added in the front end.

Let's say you have a table called foobar in Catalog Manager. When you edit something in the back end, Contao will automatically clear the cache for the following tags:

  • contao.db.foobar
  • contao.db.foobar.42 (with 42 being the ID of the edited record)

This PR adds the following cache tags:

  • contao.db.foobar in the list view - so when a record gets edited, all list views of that table get cleared from the cache.
  • contao.db.foobar.42 in the detail view - so when a record gets edited, the detail URL of that record gets cleared from the cache.

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.

1 participant
0