-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Move element/query recording out of the TemplateCaches service #1507
Comments
This is resolved for Craft 3.5. (8859124)
We’re using this new system for template caches ( Lines 417 to 440 in 8859124
Lines 478 to 488 in 8859124
|
@brandonkelly Great work! Just a heads-up, I was playing with this and if you don't create a query within the cache tag (for example, using the matched element ( Does not clear on entry save: {% cache %}
{{ entry.title }}
{% endcache %} Does clear on entry save: {% cache %}
{% set entry = craft.entries.section('homepage').one() %}
<h1>{{ entry.test }}</h1>
{% endcache %} |
That way plugins could initiate their own template recorders, and use the resulting collections for their own purposes, unrelated to Craft's own caching system (for example, they could be used as Varnish dependencies).
The text was updated successfully, but these errors were encountered: