cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: FilesystemStore broken???
Date Thu, 21 Oct 2004 23:38:53 GMT
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 and 
whether it is valid or not. Way easier solution is to add a line to crontab:

    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

View raw message