You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-fr@cocoon.apache.org by BRAUD Denis <DB...@micropole-univers.com> on 2006/09/19 15:47:04 UTC

Optimisation : transient-store / use-persistent-cache=false

Bonjour,

Comme indiqué aux URLS ci après, le rajout du paramètre use-persistent-cache=false dans cocoon.xconf pour le Transient Store semble être très fortement conseillé.

Est ce toujours d'actualité avec cocoon 2.1.9 ?
Pourquoi les commentaires de cocoon.xconf ne mentionnent pas ce paramètre ?
Et enfin, pourquoi ce paramètre n'est pas positionné à "false" par défaut ?

Merci d'avance.
Denis

----------------------------------------------------------
URLS
http://wiki.apache.org/cocoon/CocoonPerformance
http://mail-archives.apache.org/mod_mbox/cocoon-users/200402.mbox/%3C20040213094252.26178.qmail@web41001.mail.yahoo.com%3E
----------------------------------------------------------
Extrait cocoon.xconf
  <!--+
      | Transient Store: holds objects that don't have to survive shutdown
      |
      | Common configuration parameters:
      | maxobjects: Indicates how many objects will be held in the cache.
      |    When the number of maxobjects has been reached. The last object
      |    in the cache will be thrown out.
      +-->
  <transient-store logger="core.store.transient">
    <parameter name="maxobjects" value="@token.cache-maxobjects@"/>
  </transient-store>
----------------------------------------------------------


---------------------------------------------------------------------
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org
Autres commandes : mailto:users-fr-help@cocoon.apache.org


Re: Optimisation : transient-store / use-persistent-cache=false

Posted by Sylvain Wallez <sy...@apache.org>.
BRAUD Denis wrote:
> Bonjour,
>
> Comme indiqué aux URLS ci après, le rajout du paramètre use-persistent-cache=false dans cocoon.xconf pour le Transient Store semble être très fortement conseillé.
>
> Est ce toujours d'actualité avec cocoon 2.1.9 ?
> Pourquoi les commentaires de cocoon.xconf ne mentionnent pas ce paramètre ?
> Et enfin, pourquoi ce paramètre n'est pas positionné à "false" par défaut ?
>   

Ce paramètre n'avait aucun sens (pourquoi rendre persistant un cache
transient?) et a été supprimé. Pour éviter tout problème, une exception
est levée au démarrage de Cocoon si ce paramètre existe avec la valeur
"true".

Voir
http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/store/impl/DefaultTransientStore.java

Sylvain

-- 
Sylvain Wallez - http://bluxte.net


---------------------------------------------------------------------
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org
Autres commandes : mailto:users-fr-help@cocoon.apache.org