[opencms-dev] Fwd: Too frequent flex cache cleaning problem
Alexandre Portugal Sousa
alexandre.portugal at almg.gov.br
Mon Jan 11 18:15:15 CET 2016
Hi, Enrico.
I'm also installing Varnish here. But I'm facing a problem: because
of the cache, workplace logged in users cannot see their modifications
on jsp pages (offline projects).
How did you deal with that? How Varnish can distinguish workplace
users requests (which cannot be cashed) from normal users requests
(which can be cashed) ?
Thanks!
-------- Mensagem original --------
Assunto: [opencms-dev] Too frequent flex cache cleaning problem
Data: Mon, 11 Jan 2016 15:03:57 -0200
De: enrico.marongiu at
gmail.com<mailto:opencms-dev%40opencms.org?Subject=Re%3A%20%5Bopencms-dev%5D%20Too%20frequent%20flex%20cache%20cleaning%20problem&In-Reply-To=%3CCAPMdg48hszRFeAFWats%2B2Wbr2Ppcp_GEySR7LYb7Q%2B152KDHWQ%40mail.gmail.com%3E>
Para: opencms-dev at opencms.org
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 <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>> 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!
/>
--
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/20160111/4142eb09/attachment.htm>
More information about the opencms-dev
mailing list