[opencms-dev] Too frequent flex cache cleaning problem

Alexandre Portugal Sousa alexandre.portugal at almg.gov.br
Wed Dec 16 20:57:09 CET 2015


   Thanks, Enrico! Indeed, people publish very often here! We'll try 
Varnish cache as well.


Em 16/12/2015 05:00, Enrico Marongiu escreveu:
>
> Hi Alexandre,
> Please consider that flex cache is cleaned for every publish event.
> If you browse the list history (or google for it) you'll find that 
> flex cache cannot be informed of al the resources that change after a 
> publish, I.e. if you publish a template or an included jsp, all the 
> cached resources that are rendered with that jsp must be cleaned.
> We worked around this by putting a varnish layer in front of opencms 
> and configuring jsps so that they return the "appropriate" cache 
> directives.
>
> Cheers,
> Enrico
>
> Il 15/dic/2015 20:08, "Alexandre Portugal Sousa" 
> <alexandre.portugal at almg.gov.br 
> <mailto:alexandre.portugal at almg.gov.br>> ha scritto:
>
>       Hi.
>
>       I cannot understand the flex cache behavior of my server... 
>     Long before current memory use reaches the maximal, the cache is
>     cleaned.
>
>       How <maxkeys> relates to 'files' and 'variations'? Could it
>     explain somehow the "early-cleaning" problem?
>
>       Here's my config:
>
>     <flexcache>
>                 <cache-enabled>true</cache-enabled>
>                 <cache-offline>false</cache-offline>
>     <maxcachebytes>80000000</maxcachebytes>
>     <avgcachebytes>60000000</avgcachebytes>
>     <maxentrybytes>4000000</maxentrybytes>
>                 <maxkeys>5000</maxkeys>
>             </flexcache>
>
>       And here's the flex cache status right before being cleaned (I'm
>     sure you don't need to understand portuguese):
>
>
>
>        Thanks!
>
>     _______________________________________________
>     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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
>
> _______________________________________________
> 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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-- 
Atenciosamente,

*Alexandre Portugal Sousa*
GTI - Gerência-Geral de Tecnologia da Informação
GGov - Gerência de Governo Eletrônico
alexandre.portugal at almg.gov.br <mailto:alexandre.portugal at almg.gov.br>
(31) 2108-7025
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20151216/64fdcdb8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 10776 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20151216/64fdcdb8/attachment.png>


More information about the opencms-dev mailing list