Clarify caching
jsphpl opened this issue · 1 comments
jsphpl commented
Hi all!
At first, thanks – you saved me a lot of time!
Can you please explain how the caching of rendered views works? For how long are the views cached? Can we manually expire it / Force re-rendering? Is there a way to specify when the cache expires? If i render the same views for two different records of the same model, will the results be cached separately?
Thanks in advance!
Joseph
Flynsarmy commented
- They're cached until a version of the file exists with a newer timestamp
- Resave the view to expire the cache
- Fork if you want to modify the way the cache expires. PRs accepted.
- If you have two records for same view I'm pretty sure it won't work. Try it and see