<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body 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 class="moz-forward-container"><br>
         Thanks!<br>
      <br>
      -------- Mensagem original --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Assunto:
            </th>
            <td>[opencms-dev] Too frequent flex cache cleaning problem</td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Data: </th>
            <td>Mon, 11 Jan 2016 15:03:57 -0200</td>
          </tr>
          <tr>
            <th nowrap="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; orphans: auto; text-align: start;
                text-indent: 0px; text-transform: none; white-space:
                normal; widows: 1; word-spacing: 0px;
                -webkit-text-stroke-width: 0px;">enrico.marongiu at
                gmail.com<span class="Apple-converted-space"> </span></a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Para: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 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 moz-do-not-send="true" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">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 class="moz-signature">-- <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 moz-do-not-send="true"
          href="mailto:alexandre.portugal@almg.gov.br">alexandre.portugal@almg.gov.br</a>
        <br>
        (31) 2108-7025 <br>
      </div>
      <br>
    </div>
    <br>
  </body>
</html>