[MAGNOLIA-1652] Make it possible to periodically flush complete cache or specific entries Created: 02/Aug/07  Updated: 23/Jan/13  Resolved: 10/Mar/10

Status: Closed
Project: Magnolia
Component/s: cache
Affects Version/s: None
Fix Version/s: 4.3

Type: Improvement Priority: Major
Reporter: zam6ak Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

3.1-SNAPSHOT
JBoss 4.0.5


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

Simple cache implementation would benefit from having a configurable parameter that would flush the cache in certain time intervals.
Right now, the cache is flushed only after content is published (after 30 sec) but there are cases when flushing cache is benefitial (server side dynamic content, for example).
Setting this interval to 0 (zero) could preserve the current behaviour otherwise cache is to be flushed every time the configured counter reaches the number of seconds....



 Comments   
Comment by Jan Haderka [ 10/Mar/10 ]

As of Magnolia 4.3, 2 new commands to flush either whole cache or specific entries (based on content uuid) are available making it possible for anyone to setup easily scheduled job to either flush whole cache or specific entries periodically.

Generated at Mon Feb 12 03:29:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.