You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Z.Z." <za...@vili.pmmf.hu> on 2004/03/06 11:13:23 UTC

How to disable AbstractCachingProcessingPipeline ?

Hello All,

I would like to make a directory handling app. I need to delete and upload 
files to this directory. It works well, but after delete or upload I get a 
cached directory content which is not modified. After I refresh it, the 
content is right.
I set sitemap logger to debug, and it seems to be 
AbstractCachingProcessingPipeline found a cached version after 
delete/upload, and it serve this.

log snippet after delete/upload:
------------------
DEBUG   (2004-03-06) 11:00.18:041   [sitemap] (/cocoon/~zamek/dir/list) 
Thread-10/AbstractCachingProcessingPipeline: Found cached response for 
'list' using key: 
PK_G-<aggregator>-CA(:page<>)P=false:cocoon://~zamek/dir/dir?pipelinehash=-3158566666461443762;_T-xslt-file:/home/zamek/public_html/dir/dir2html.xsl_S-html-1
DEBUG   (2004-03-06) 11:00.18:043   [sitemap] (/cocoon/~zamek/dir/list) 
Thread-10/AbstractCachingProcessingPipeline: validatePipeline: using valid 
cached content for 'list'.
--------------------
log snippet after refresh:
--------------------
DEBUG   (2004-03-06) 11:02.39:527   [sitemap] (/cocoon/~zamek/dir/list) 
Thread-11/AbstractCachingProcessingPipeline: Cached response not found for 
'dir' using key: PK_G-directory-.:20:null:name:false:1000:null::^java.*$:
--------------------

in my sitemap.xmap I set caching to off:

  <map:pipelines>
    <map:pipeline caching="off">

      <map:match pattern="do-delete-**">
        <map:act type="xsp-action" src="java/delete.xsp">
          <map:parameter name="file" value="{1}"/>
          <map:redirect-to uri="{request:scheme}://{request:serverName}:
{request:serverPort}/cocoon/~zamek
        </map:act>
      </map:match>


      <map:match pattern="list">
        <map:aggregate element="page">
          <map:part src="cocoon:/dir" strip-root="false"/>
        </map:aggregate>
        <map:transform src="dir2html.xsl" label="debug1"/>
        <map:serialize/>
      </map:match>

 .......
    </map:pipeline>

    <map:pipeline internal-only="true" caching="off">

      <map:match pattern="dir">
        <map:call resource="dir">
          <map:parameter name="dir" value="."/>
          <map:parameter name="depth" value="20"/>
          <map:parameter name="exclude" value=".*\.x.*$"/>
          <map:parameter name="exclude" value="^java.*$"/>
        </map:call>
      </map:match>

    </map:pipeline>

So, how can I disable this caching?

-- 
thx,
----------------------------------------------------
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: How to disable AbstractCachingProcessingPipeline ?

Posted by "Z.Z." <za...@vili.pmmf.hu>.
Hello All,

Sorry for asking I found solving:
     <map:pipeline caching="off">
isn't right, valid is:
     <map:pipeline type="noncaching">

2004. március 6. 11.13 dátummal Z.Z. ezt írta:
> Hello All,
>
> I would like to make a directory handling app. I need to delete and
> upload files to this directory. It works well, but after delete or upload
> I get a cached directory content which is not modified. After I refresh
> it, the content is right.
> I set sitemap logger to debug, and it seems to be
> AbstractCachingProcessingPipeline found a cached version after
> delete/upload, and it serve this.
>
> log snippet after delete/upload:
> ------------------
> DEBUG   (2004-03-06) 11:00.18:041   [sitemap] (/cocoon/~zamek/dir/list)
> Thread-10/AbstractCachingProcessingPipeline: Found cached response for
> 'list' using key:
> PK_G-<aggregator>-CA(:page<>)P=false:cocoon://~zamek/dir/dir?pipelinehash
>=-3158566666461443762;_T-xslt-file:/home/zamek/public_html/dir/dir2html.xs
>l_S-html-1 DEBUG   (2004-03-06) 11:00.18:043   [sitemap]
> (/cocoon/~zamek/dir/list) Thread-10/AbstractCachingProcessingPipeline:
> validatePipeline: using valid cached content for 'list'.
> --------------------
> log snippet after refresh:
> --------------------
> DEBUG   (2004-03-06) 11:02.39:527   [sitemap] (/cocoon/~zamek/dir/list)
> Thread-11/AbstractCachingProcessingPipeline: Cached response not found
> for 'dir' using key:
> PK_G-directory-.:20:null:name:false:1000:null::^java.*$:
> --------------------
>
> in my sitemap.xmap I set caching to off:
>
>   <map:pipelines>
>     <map:pipeline caching="off">
>
>       <map:match pattern="do-delete-**">
>         <map:act type="xsp-action" src="java/delete.xsp">
>           <map:parameter name="file" value="{1}"/>
>           <map:redirect-to uri="{request:scheme}://{request:serverName}:
> {request:serverPort}/cocoon/~zamek
>         </map:act>
>       </map:match>
>
>
>       <map:match pattern="list">
>         <map:aggregate element="page">
>           <map:part src="cocoon:/dir" strip-root="false"/>
>         </map:aggregate>
>         <map:transform src="dir2html.xsl" label="debug1"/>
>         <map:serialize/>
>       </map:match>
>
>  .......
>     </map:pipeline>
>
>     <map:pipeline internal-only="true" caching="off">
>
>       <map:match pattern="dir">
>         <map:call resource="dir">
>           <map:parameter name="dir" value="."/>
>           <map:parameter name="depth" value="20"/>
>           <map:parameter name="exclude" value=".*\.x.*$"/>
>           <map:parameter name="exclude" value="^java.*$"/>
>         </map:call>
>       </map:match>
>
>     </map:pipeline>
>
> So, how can I disable this caching?

-- 
thx,
----------------------------------------------------
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org