Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Cache not clearing on template saves.
Status | Resolved |
Add-on / Version | Speedy 1.1.2 |
Severity | |
EE Version | 5.3.2 |
Emmanuel Pacheco
May 16, 2020Hello,
I’m a little confused as to what “refresh when an entry in this channel changes” means? Does “entry” mean template or does it mean an actual entry (as in a template would read this “entry” that belongs to a specific channel i.e course entry)? My problem is when I edit a template in EE and save it, the changes are not reflecting on the website. I would have to manually clear the cache before the new template would take effect.
I have a template called: courses/course
Inside this template I’m using the following: {exp:speedy:fragment driver="file" ttl="2419200" tags="testcourse"} {exp:channel:entries channel="erm_courses" limit="1" show_future_entries="yes" disable="member_data|pagination|categories|category_fields"}
...
... {/exp:speedy:fragment}
About the template: The template grabs a single entry from the “erm_courses” channel and then displays it’s content. Creating a new cache page for each course entry visited.
Currently I only have two course entries. So under Overview in Speedy I have the following: local/courses/course/erm-fellows and local/courses/course/masters-degree-program both have an item entry containing the respective cached page.
For the “Cache Clearing Rules”, I selected the Courses channel. Under Clear Tags I have “testcourse”. Nothing under Clear Item. And Refresh Item set to On.
What I want to happen is, when I make a change to the courses/course template I want all the cache under local/courses/course cleared automatically but I can’t seem to get it to work? I have to manually do it. I want to make a change to the template and reload the page and see the change take effect. Any help will greatly be appreciated.
Also, I’m not using EE caching, only speedy.
BoldMinded (Brian)
It means when an entry is saved/updated. Speedy doesn’t clear any caches when a template is changed… you have to do that manually. If you’re making a lot of changes to a template, it sounds like you’re in the middle of development, and probably shouldn’t have caching enabled to begin with. Caching is mostly used for on a production site so you get optimal performance.
Emmanuel Pacheco
Okay, that’s what I thought. Makes sense. Thanks.