jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Jackrabbit Caching?
Date Thu, 03 Jul 2008 11:28:43 GMT
I am still wondering in which way you actually replace the repository
data? Which persistence manager do you use? Just curious... ;-)

Regards,
Alex

On Thu, Jul 3, 2008 at 2:30 AM, Jared Graber <jared.graber@iaccap.com> wrote:
> Found a solution for my use case:
> Use a transient repository.  Since I rarely connect to the repository, I
> can take the performance hit of initialization and shutdown every time I
> need to export the data.  On shutdown the cache is cleared so I always
> get the current data in the repository.
>
> -Jared
>
> -----Original Message-----
> From: Jared Graber [mailto:jared.graber@IACcap.com]
> Sent: Wednesday, July 02, 2008 1:00 PM
> To: users@jackrabbit.apache.org
> Subject: RE: Jackrabbit Caching?
>
> Thanks for the info.  I'm not using webdav though.
>
> I'm still looking for a way to turn off caching (preferably) or clear
> the cache.
>
> I found that setting the max sizes (setMaxMemory and
> setMaxMemoryPerCache) in CacheManager to zero doesn't turn off caching
> because the values are not enforced when new caches are added (or when
> the size is set after a cache exists already).  Those values only come
> into effect on a cache resize which can't be triggered directly.
>
> -Jared
>
>
> -----Original Message-----
> From: Conoly, Brett [mailto:Brett.Conoly@digitalinsight.com]
> Sent: Wednesday, July 02, 2008 12:04 PM
> To: users@jackrabbit.apache.org
> Subject: RE: Jackrabbit Caching?
>
> I don't know how you're actually retrieving the content but I had this
> problem retrieving data from webdav a while back.  I did learn that the
> headers sent back by webdav are not updated unless you set the
> JCR_LASTMODIFIED property of the content node.  This prevented the
> caching for me, hope this helps.
> Brett
>
> -----Original Message-----
> From: Jared Graber [mailto:jared.graber@IACcap.com]
> Sent: Wednesday, July 02, 2008 8:55 AM
> To: users@jackrabbit.apache.org
> Subject: RE: Jackrabbit Caching?
>
>
> I understand that I shouldn't modify the underlying database directly,
> but I need to deal w/ database restores.
> So is there a way to turn off caching?
>
> -Jared
>
> -----Original Message-----
> From: Jukka Zitting [mailto:jukka.zitting@gmail.com]
> Sent: Tue 7/1/2008 5:32 PM
> To: users@jackrabbit.apache.org
> Subject: Re: Jackrabbit Caching?
>
> Hi,
>
> On Wed, Jul 2, 2008 at 12:13 AM, Jared Graber <jared.graber@iaccap.com>
> wrote:
>> Is the in-memory cache preventing me from getting the new data?
>
> Only if you modify the underlying database directly, which you should
> never do.
>
> If you only access the content through the JCR API, Jackrabbit will
> automatically make sure that all caches are correctly invalidated and
> search indexes updated whenever content changes.
>
> Furthermore, since the JCR-RMI layer does no caching you can also use
> that without worrying about cache coherence issues.
>
> BR,
>
> Jukka Zitting
>
>



-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message