You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by qMax <qm...@mediasoft.ru> on 2005/05/18 08:58:45 UTC

html caching in work/cache in 1.2.3

What is the reason of using additional caching in /pubdir/work/cache ?
Is cocoon cache not enough ?

This cache completely prevents using url parameters.


-- 
 qMax


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re[2]: html caching in work/cache in 1.2.3

Posted by qMax <qm...@mediasoft.ru>.
Wednesday, May 18, 2005, 7:17:51 PM, Nicolas Rod wrote:
NR>  I can't answer your question directly, but if it helps, I
NR> had to deal with this cache for pages having dynamic content.
NR>  You will find here how I did to bypass the cache only for certain pages:
NR> http://lnxweb1.unige.ch/lenya/wiki/index.php/LenyaDB_installation_instructions#.24default.2Fpublication-sitemap.xmap
NR>  (look for '- modify this matcher in order to use the cache
NR> only for pages that don't contain dynamic content' a few lines
NR> below)
So, you just used another custom selector to examine page source
and determine if page should be cached (stored in cache) or not.

For my case I need to check if an url parameter was used.

But I also have calendar doctype, which should be regenerated every day.
It's hard to deal with this cache in this case.
I just disabled this cache completely.

-- 
 qMax


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


html caching in work/cache in 1.2.3 (default pub)

Posted by qMax <qm...@mediasoft.ru>.
Thursday, May 19, 2005, 10:47:59 PM, J. Wolfgang Kaltz wrote:

>> 
>> Le message suivant a été écrit par qMax le 18. 05. 05 08:58:
>> 
>>>What is the reason of using additional caching in /pubdir/work/cache ?
>>>Is cocoon cache not enough ?
>>>
>>>This cache completely prevents using url parameters.

JWK> qMax, do you mean that URL parameters no longer work at all in Lenya
JWK> 1.2.3 ? What are you doing with the URL parameters, using them in an XSL
JWK> stylesheet ? (this is what I use them for, for a custom doctype)
Yes, this is exactly what I do: I pass them to xsl transformation in
doctypes.xmap.

JWK> If this is indeed the case, does anybody have more information on this ?
JWK> Such as, what was changed between Lenya 1.2.2 and 1.2.3 that would cause
JWK> URL parameters to no longer be passed on to the XSL ?
In default publication, publication-sitemap.xmap, pipeline "*.html"
there is writing result of lenyabody-* to directory work/cache:
  <map:select type="resource-exists">
    <map:when test="{global:cache-dir}/{../1}.html">
      <map:read src="{global:cache-dir}/{../1}.html" mime-type="text/html"/>
    </map:when>
    <map:otherwise>
       <map:generate src="cocoon:/lenyabody-view/{page-envelope:publication-id}/{page-envelope:area}/{page-envelope:d
       <!-- here goes writing in into cache directory -->
    </map:otherwise>
  </map:select>

This match of cause ignores parameters and another things that
might affect rendering (e.g. current date).
It's ok for default publication, since there are no such pages.
But not for real publication based on default.

-- 
 qMax


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: html caching in work/cache in 1.2.3

Posted by "J. Wolfgang Kaltz" <jw...@apache.org>.
> 
> Le message suivant a été écrit par qMax le 18. 05. 05 08:58:
> 
>>What is the reason of using additional caching in /pubdir/work/cache ?
>>Is cocoon cache not enough ?
>>
>>This cache completely prevents using url parameters.

qMax, do you mean that URL parameters no longer work at all in Lenya 
1.2.3 ? What are you doing with the URL parameters, using them in an XSL 
stylesheet ? (this is what I use them for, for a custom doctype)

If this is indeed the case, does anybody have more information on this ? 
Such as, what was changed between Lenya 1.2.2 and 1.2.3 that would cause 
URL parameters to no longer be passed on to the XSL ?


--
Wolfgang

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org