cziegeler 2003/01/08 08:42:30 Modified: src/java/org/apache/cocoon/components/pipeline/impl AbstractCachingProcessingPipeline.java Log: Turning on smart caching as it works now :) Revision Changes Path 1.13 +6 -5 xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java Index: AbstractCachingProcessingPipeline.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- AbstractCachingProcessingPipeline.java 8 Jan 2003 16:35:13 -0000 1.12 +++ AbstractCachingProcessingPipeline.java 8 Jan 2003 16:42:30 -0000 1.13 @@ -142,7 +142,7 @@ public void setup(Parameters params) { super.setup(params); this.doSmartCaching = params.getParameterAsBoolean("smart-caching", - this.configuration.getParameterAsBoolean("smart-caching", false)); + this.configuration.getParameterAsBoolean("smart-caching", true)); // FIXME (CZ) - Implement smart caching } @@ -503,9 +503,9 @@ // FIXME (CZ) calculation of PPK if (cachedPipelineKey.size() > 1) { cachedPipelineKey.removeLastKey(); - if (!this.completeResponseIsCached) { - this.firstProcessedTransformerIndex--; - } + if (!this.completeResponseIsCached) { + this.firstProcessedTransformerIndex--; + } } else { cachedPipelineKey = null; } @@ -514,6 +514,7 @@ } else { // stop on longest key for smart caching finished = true; + this.completeResponseIsCached = false; cachedPipelineKey = null; } }
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]