Bonjour,
Une petite correction :
> <map:components>
> <map:pipes default="caching">
> <map:pipe name="expires-caching-hourly"
>
> src="org.apache.cocoon.components.pipeline.ExpiresCachingProcessingPipeline">
> <parameter name="cache-expires" value="3600" />
> </map:pipe>
> </map:pipes>
> </map:components>
<map:components>
<map:pipes default="caching">
<map:pipe name="expires-caching-hourly"
src="org.apache.cocoon.components.pipeline.impl.ExpiresCachingProcessingPipeline">
<parameter name="cache-expires" value="3600" />
</map:pipe>
</map:pipes>
</map:components>
C'est largement mieux maintenant, je te remercie Jean-Baptiste Quenot pour ton
aide.
-La première requete est lente (10 min), mais ça c'est normal car il faut bien
recuperer les données pour mettre dans le cache.
-La seconde requete: je l'ai assez rapidement (moin 1 minute)
Mais je dois avouer que je suis perdu au niveau des utilisations du chache de
cocoon, et j'ai du mal avoir la différence entre les systèmes de cache. :-(
Et je ne dis pas non pour avoir des documentations à ce sujet.
Aussi, je voudrais bien savoir par defaut, Combien de Octets que cocoon peut
stocker en cache?
Selon Jean-Baptiste Quenot <[EMAIL PROTECTED]>:
> * [EMAIL PROTECTED]:
> > <map:pipeline type="caching">
> > <map:parameter name="expires" value="access plus 1 hours"/>
> > <map:match pattern="Source/*/Etudiant/Pole/*/*.xml">
> > <map:generate src="http://{1}/ThES_{2}.nsf/viewXML_et/{3}"/>
> > <map:serialize type="xml"/>
> > </map:match>
> > </map:pipeline>
>
> Bonjour,
>
> Je pense que tu cherches plutôt à mettre en cache ce pipeline, il
> faudra donc écrire:
>
> <map:components>
> <map:pipes default="caching">
> <map:pipe name="expires-caching-hourly"
>
> src="org.apache.cocoon.components.pipeline.ExpiresCachingProcessingPipeline">
> <parameter name="cache-expires" value="3600" />
> </map:pipe>
> </map:pipes>
> </map:components>
>
> <map:pipeline type="expires-caching-hourly">
> <map:match pattern="Source/*/Etudiant/Pole/*/*.xml">
> <map:generate src="http://{1}/ThES_{2}.nsf/viewXML_et/{3}"/>
> <map:serialize type="xml"/>
> </map:match>
> </map:pipeline>
> --
> Jean-Baptiste Quenot
> Systèmes d'Information
> ANYWARE TECHNOLOGIES
> Tel : +33 (0)5 61 00 52 90
> Fax : +33 (0)5 61 00 51 46
> http://www.anyware-tech.com/
>
> ---------------------------------------------------------------------
> Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
> Pour vous desinscrire : mailto:[EMAIL PROTECTED]
> Autres commandes : mailto:[EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]