cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Corin Moss" <>
Subject RE: FilesystemStore broken???
Date Thu, 21 Oct 2004 23:52:20 GMT


This probably works for the FilesystemStore, but both the JCS and
EHCache stores use their own store file - so everything is cached within
one big binary file - which means that something else has to take over
the deleting cycle. Also add to this that when you use event based
caching you can't rely on time stamps - something could be 3 months old
in the cache but still be valid.


-----Original Message-----
From: Vadim Gritsenko []
Sent: Friday, 22 October 2004 12:39 p.m.
Subject: Re: FilesystemStore broken???

Corin Moss wrote:
> Hiya,
> This does indeed cause problems now that true persistence is working.
> Given that no space is actually recovered from the persistent store
> (even when items are invalid) the disk-cache grows - even across
> shutdown /startup cycles.  I guess the store janitor will need to be
> modified to enable removal of expired / invalid content.

It's not its job. Moreover, it does not know what is stored in the Store
whether it is valid or not. Way easier solution is to add a line to

    rm `find -atime +7`

So only files not used at all in a week or more will get erased. Easy,
efficient, no coding required.


> Corin
> -----Original Message-----
> From: Geoff Howard []
> Sent: Friday, 22 October 2004 10:48 a.m.
> To:
> Subject: Re: FilesystemStore broken???
> On Thu, 21 Oct 2004 14:57:28 -0400, Vadim Gritsenko
> <> wrote:
>>Pier Fumagalli wrote:
>>>On 21 Oct 2004, at 04:22, Vadim Gritsenko wrote:
>>>>  "Clean out" here writes stuff out into the persistent store,
>>>>  if stuff is Serializable.
>>>>Transient store:
>>>>  "Clean out" here removes stuff completely, hence the
>>>>  name: "transient".
>>>>Persistent store:
>>>>  Janitor does not touch this store at all. No "clean out"
>>>>  happening at all.
>>>So, given that the cache is caching in the persistent store, who
>>>cleans it out? The cache itself? This is getting _waay_ to frisky for

>>>my taste :-(
>>Cache caches into Store. Store overflows into PersistentStore when low

>>on memory or on shutdown (*).
>>Cache cleans up stale items on "as-detected" basis, or, if you use
>>event cache pipelines, stale items removed as per external events
>>* Might not work with JCS / EHCache implementations
>>** Don't know much about this event stuff myself
> You're right about the event-based cache validities - not much more to

> say about it in this context.
> Also, the unbounded nature of the persistent store (especially as it
> relates to the overflow from the cache) has always worried me.  I'd
> much prefer to see cached entries examined periodically and if they
> can be determined to be invalid, removed.  But, in practice this
> apparently has not caused noticeable problems or surely we would have
> heard about it?
> Geoff

CAUTION: This e-mail and any attachment(s) contains information
that is intended to be read only by the named recipient(s). It
may contain information that is confidential, proprietary or the
subject of legal privilege. This information is not to be used by
any other person and/or organisation. If you are not the intended
recipient, please advise us immediately and delete this e-mail
from your system. Do not use any information contained in it.

For more information on the Television New Zealand Group, visit
us online at

View raw message