<div dir="ltr">Hi Alexandre.<div><br><div>You have to do something with the varnish to avoid all the caches using the cookie or something. i'm not familiarizate with varnish. In our case we connect separate. Suppose <a href="http://www.mywebsite.com">www.mywebsite.com</a> <--normal users, <a href="http://www.mywebsite.with.out.varnish.com">www.mywebsite.with.out.varnish.com</a> <--workplace users.<br></div><div><br></div><div>Cheers</div></div></div><br><div class="gmail_quote"><div dir="ltr">El lun., 11 de ene. de 2016 a la(s) 11:15, Alexandre Portugal Sousa <<a href="mailto:alexandre.portugal@almg.gov.br">alexandre.portugal@almg.gov.br</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hi, Enrico.<br>
<br>
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).<br>
<br>
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) ?<br>
<div><br>
Thanks!<br>
<br>
-------- Mensagem original --------
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<th nowrap valign="BASELINE" align="RIGHT">Assunto:
</th>
<td>[opencms-dev] Too frequent flex cache cleaning problem</td>
</tr>
<tr>
<th nowrap valign="BASELINE" align="RIGHT">Data: </th>
<td>Mon, 11 Jan 2016 15:03:57 -0200</td>
</tr>
<tr>
<th nowrap valign="BASELINE" align="RIGHT">De: </th>
<td><a href="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" title="[opencms-dev] Too frequent flex cache cleaning
problem" style="font-family:'Times New Roman';font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">enrico.marongiu at
gmail.com<span> </span></a></td>
</tr>
<tr>
<th nowrap valign="BASELINE" align="RIGHT">Para: </th>
<td><a href="mailto:opencms-dev@opencms.org" target="_blank">opencms-dev@opencms.org</a><br>
</td>
</tr>
</tbody>
</table>
<br>
<pre style="white-space:pre-wrap;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px">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" <
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">alexandre.portugal at almg.gov.br</a>> ha scritto:
><i> Hi.
</i>><i>
</i>><i> I cannot understand the flex cache behavior of my server... Long before
</i>><i> current memory use reaches the maximal, the cache is cleaned.
</i>><i>
</i>><i> How <maxkeys> relates to 'files' and 'variations'? Could it explain
</i>><i> somehow the "early-cleaning" problem?
</i>><i>
</i>><i> Here's my config:
</i>><i>
</i>><i> <flexcache>
</i>><i> <cache-enabled>true</cache-enabled>
</i>><i> <cache-offline>false</cache-offline>
</i>><i> <maxcachebytes>80000000</maxcachebytes>
</i>><i> <avgcachebytes>60000000</avgcachebytes>
</i>><i> <maxentrybytes>4000000</maxentrybytes>
</i>><i> <maxkeys>5000</maxkeys>
</i>><i> </flexcache>
</i>><i>
</i>><i> And here's the flex cache status right before being cleaned (I'm sure
</i>><i> you don't need to understand portuguese):
</i>><i>
</i>><i>
</i>><i>
</i>><i> Thanks!
</i>></pre>
<div>-- <br>
Atenciosamente, <br>
<br>
<b>Alexandre Portugal Sousa</b> <br>
GTI - Gerência-Geral de Tecnologia da Informação <br>
GGov - Gerência de Governo Eletrônico <br>
<a href="mailto:alexandre.portugal@almg.gov.br" target="_blank">alexandre.portugal@almg.gov.br</a>
<br>
(31) 2108-7025 <br>
</div>
<br>
</div>
<br>
</div>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
</blockquote></div>