[opencms-dev] Flushing the cache
Jordi Martí
jmarti at theinit.com
Fri Mar 28 12:16:51 CET 2008
Mmmh, think of flexcache every time you include something... When you do
<cms:include ...> it uses flexcache. I think the same happens with
cms:contentload too. Also when you call a page in vfs through a URL.
I think this is true (somebody corrects me, please):
You can set the cache property to any element in VFS. It will be used when:
- Calling it through an URL.
- including it (for example, <cms:include template="...".../>).
- Collecting it (<cms:contentload...).
So if you set it ONLY in templates, and you change directly an HTML in
/sites/..., I think it will still be cached. Or if you change an XML
element, I think it will be cached too. To fix this, you could set cache
property in /sites/mysite folder, for example. I think it is recursive
(please, anyone, correct me).
In your case, I think it is enough setting it in /sites/mysite.
Watch out. Flexcache is MEMORY cache. It is different from JSP repository in
RFS. If you want to purge ALL cache in a opencms instance when something is
published somewhere all, you have to do both:
- purge jsp repository (yes, you can delete rm -rf ...; I do that,
in fact)
- clear flex cache
JORDI MARTÍ
Email: jmarti AT theinit _dot_ com
Skype ID: jmarti.theinit
PRIVADO Y CONFIDENCIAL
Este mensaje va dirigido a la persona(s) indicada(s). Puede contener
información confidencial de carácter legal o personal de THE INIT SERVICES,
La transmisión errónea del presente mensaje en ningún momento supone
renuncia a su confidencialidad. Si el lector del mensaje no es el
destinatario indicado, o el empleado encargado de su entrega a dicha
persona, por favor, notifíquelo inmediatamente por teléfono y remita el
mensaje original a la dirección de correo electrónico indicada. Cualquier
copia o distribución de esta comunicación queda estrictamente prohibida.
-----Mensaje original-----
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
En nombre de Yves Glodt
Enviado el: viernes, 28 de marzo de 2008 11:23
Para: The OpenCms mailing list
Asunto: Re: [opencms-dev] Flushing the cache
On Friday 28 March 2008, Jordi Martí wrote:
> Looking through google via "clear flexcache":
>
>
http://www.opencms-forum.de/opencms-forum/viewthread;jsessionid=7330704EF57
>B 1CDCAE19B1C1B13D2997?thread=718
Thank you for the input!
I found this document useful:
http://www.coldamp.com/opencms/opencms/alkacon-documentation/documentation_f
lexcache/directives_reference.html
I wonder, is it enough if I set the timeout value only on my template? As it
will be loaded by any page, it should be ok?
Or do I have to set it on each resource (including img and css)?
Regards,
Yves
> JORDI MARTÍ
> Email: jmarti AT theinit _dot_ com
> Skype ID: jmarti.theinit
>
>
> -----Mensaje original-----
> De: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] En nombre de Yves Glodt
> Enviado el: viernes, 28 de marzo de 2008 10:26
> Para: The OpenCms mailing list
> Asunto: [opencms-dev] Flushing the cache
>
> Hello,
>
> how can I flush the cache of an OpenCms instance?
> Is it possible to do this directly in the filesystem? (e.g. rm -rf a
certai
> folder?)
>
>
> Regards,
> Yves
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list