cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r433757 - in /cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main: java/org/apache/cocoon/components/source/helpers/DelaySourceRefresher.java resources/org/apache/cocoon/components/readme.txt
Date Tue, 22 Aug 2006 21:22:12 GMT
Author: vgritsenko
Date: Tue Aug 22 14:22:11 2006
New Revision: 433757

URL: http://svn.apache.org/viewvc?rev=433757&view=rev
Log:
stray import, nits in readme.

Modified:
    cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/helpers/DelaySourceRefresher.java
    cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/resources/org/apache/cocoon/components/readme.txt

Modified: cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/helpers/DelaySourceRefresher.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/helpers/DelaySourceRefresher.java?rev=433757&r1=433756&r2=433757&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/helpers/DelaySourceRefresher.java
(original)
+++ cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/helpers/DelaySourceRefresher.java
Tue Aug 22 14:22:11 2006
@@ -51,7 +51,6 @@
 import org.apache.cocoon.ProcessingException;
 import org.apache.cocoon.Processor;
 import org.apache.cocoon.components.source.SourceUtil;
-import org.apache.cocoon.components.source.helpers.SourceRefresher;
 import org.apache.cocoon.components.thread.RunnableManager;
 import org.apache.cocoon.environment.background.BackgroundEnvironment;
 import org.apache.cocoon.environment.internal.EnvironmentHelper;

Modified: cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/resources/org/apache/cocoon/components/readme.txt
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/resources/org/apache/cocoon/components/readme.txt?rev=433757&r1=433756&r2=433757&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/resources/org/apache/cocoon/components/readme.txt
(original)
+++ cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/resources/org/apache/cocoon/components/readme.txt
Tue Aug 22 14:22:11 2006
@@ -19,50 +19,42 @@
 Configuration in the cocoon.xconf:
 
 <source-factories>
- ...
-
-<component-instance class="org.apache.cocoon.components.source.impl.CachingSourceFactory"
name="cached">
-</component-instance>
-<component-instance class="org.apache.cocoon.components.source.impl.CachingSourceFactory"
name="acached">
-  <parameter name="async" value="true"/>
-</component-instance>
+  ...
+  <component-instance class="org.apache.cocoon.components.source.impl.CachingSourceFactory"
name="cached">
+  </component-instance>
+  <component-instance class="org.apache.cocoon.components.source.impl.CachingSourceFactory"
name="acached">
+    <parameter name="async" value="true"/>
+  </component-instance>
 </source-factories>
 
 Synced caching
 --------------
 
-Caches another source for a given period of time. Usage:
-
-cached://EXPIRES@URL or cached://EXPIRES@CACHE_KEY@URL
-
-If the cached content expires, the content is fetched new on the next request.
-
-Example: cached://60@http://www.s-und-n.de
+Caches another source for a given period of time. Example:
 
-The source http://www.s-und-n.de is cached for 60 seconds using the key
-http://www.s-und-n.de.
+  cached:http://www.apache.org/[?cocoon:cache-expires=60&cocoon:cache-name=main]
 
-Example: cached://60@main@http://www.s-und-n.de.
-
-The source http://www.s-und-n.de is cached for 60 seconds using the key main.
+The source http://www.apache.org/ is cached for 60 seconds with 'main' added
+to the cache key. If the cached content expires, the content is fetched new
+on the next request.
 
 Async caching
 -------------
 
-Example: acached://60@http://www.s-und-n.de
+Example:
+
+  acached:http://www.apache.org/[?cocoon:cache-expires=60&cocoon:cache-name=main]
 
 The source is refreshed in background every 60 seconds and
 is always streamed using the cached version.
 
-
 Configuration
 =============
 
 The new RunnableManager task manager from the core is used for scheduling.
-
 Configuration in cocoon.xconf:
 
-<component class="org.apache.cocoon.components.source.DelayRefresher"
+<component class="org.apache.cocoon.components.source.helpers.DelaySourceRefresher"
             role="org.apache.cocoon.components.source.helpers.SourceRefresher">
   <parameter name="write-interval" value="3600"/>
   <parameter name="write-source" value="context://targets.xml"/>



Mime
View raw message