cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lgaw...@apache.org
Subject svn commit: r447536 - in /cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF: view/caching3.jx view/caching4.jx welcome.xml
Date Mon, 18 Sep 2006 20:10:53 GMT
Author: lgawron
Date: Mon Sep 18 13:10:52 2006
New Revision: 447536

URL: http://svn.apache.org/viewvc?view=rev&rev=447536
Log:
ExpiresValidity sample

Added:
    cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching4.jx
  (with props)
Modified:
    cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching3.jx
    cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/welcome.xml

Modified: cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching3.jx
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching3.jx?view=diff&rev=447536&r1=447535&r2=447536
==============================================================================
--- cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching3.jx
(original)
+++ cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching3.jx
Mon Sep 18 13:10:52 2006
@@ -25,7 +25,7 @@
         </p>
 
         <p>
-            Next sample: none.<br/>
+            Next sample: <a href="../view/caching4">Setting other validities</a>.<br/>
             Go <a href="../">Back</a> to Cocoon Template samples.
         </p>
     </content>

Added: cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching4.jx
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching4.jx?view=auto&rev=447536
==============================================================================
--- cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching4.jx
(added)
+++ cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching4.jx
Mon Sep 18 13:10:52 2006
@@ -0,0 +1,28 @@
+<page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"  jx:cache-key="abc" jx:cache-validity="${Packages.org.apache.excalibur.source.impl.validity.ExpiresValidity(10000)}">
+	<title>JX Caching</title>
+	<content>
+		<p>
+			This content has been generated at <jx:formatDate value="${java.util.Calendar.getInstance().getTime()}"
pattern="yyyy-MM-dd HH:mm:ss"/><br/>
+		</p>
+		<p>
+			Caching configuration is <b>jx:cache-key=&quot;abc&quot;
+			jx:cache-validity=&quot;$ {Packages.org.apache.excalibur.source.impl.validity.ExpiresValidity(10000)}&quot;</b>
+		</p>
+
+		<p>
+			This means that once the content is generated it expires after 10 seconds.<br/>
+			The cache key is static so there will only be one instance of cached document.<br/>
+			You may of course mix various cache key generation strategies with different validities.<br/>
+		</p>
+
+		<p>
+			You may try to <a href="">reload the page</a> and see if generation date changes.<br/>
+			You may try to <a href="?foo=bar">define additional request parameters</a>
to see that it does not change a thing.
+		</p>
+
+		<p>
+			Next sample: none.<br/>
+			Go <a href="../">back</a> to Cocoon Template samples.
+		</p>
+	</content>
+</page>
\ No newline at end of file

Propchange: cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching4.jx
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/view/caching4.jx
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/welcome.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/welcome.xml?view=diff&rev=447536&r1=447535&r2=447536
==============================================================================
--- cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/welcome.xml
(original)
+++ cocoon/trunk/blocks/cocoon-template/cocoon-template-sample/src/main/resources/COB-INF/welcome.xml
Mon Sep 18 13:10:52 2006
@@ -25,6 +25,7 @@
  <group name="Caching">
   <sample name="Static caching" href="view/caching1">Static caching</sample>
   <sample name="Request parameter based caching" href="view/caching2">Request parameter
based caching</sample>
-  <sample name="Request parameter based caching" href="view/caching3">Caching with
all request parameters</sample>
+  <sample name="Caching with all request parameters" href="view/caching3">Caching with
all request parameters</sample>
+  <sample name="Using ExpiresValidity" href="view/caching3">Using ExpiresValidity</sample>
  </group>
 </samples>



Mime
View raw message