cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl AbstractCachingProcessingPipeline.java
Date Wed, 08 Jan 2003 16:35:13 GMT
cziegeler    2003/01/08 08:35:13

  Modified:    src/java/org/apache/cocoon/components/pipeline/impl
                        AbstractCachingProcessingPipeline.java
  Log:
  Turning of smart caching :( as it doesn't work...
  
  Revision  Changes    Path
  1.12      +17 -12    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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AbstractCachingProcessingPipeline.java	8 Jan 2003 16:20:13 -0000	1.11
  +++ AbstractCachingProcessingPipeline.java	8 Jan 2003 16:35:13 -0000	1.12
  @@ -142,7 +142,7 @@
       public void setup(Parameters params) {
           super.setup(params);
           this.doSmartCaching = params.getParameterAsBoolean("smart-caching",
  -                              this.configuration.getParameterAsBoolean("smart-caching",
true));
  +                              this.configuration.getParameterAsBoolean("smart-caching",
false));
           // FIXME (CZ) - Implement smart caching
       }
   
  @@ -498,19 +498,24 @@
                           "' using key: " +  cachedPipelineKey
                       );
                   }
  -                // try a shorter key
  -                // FIXME (CZ) calculation of PPK
  -                if (cachedPipelineKey.size() > 1) {
  -                    cachedPipelineKey.removeLastKey();
  -                   if (!this.completeResponseIsCached) {
  -                       this.firstProcessedTransformerIndex--;
  -                   }
  +                if (!this.doSmartCaching) {
  +                    // try a shorter key
  +                    // FIXME (CZ) calculation of PPK
  +                    if (cachedPipelineKey.size() > 1) {
  +                        cachedPipelineKey.removeLastKey();
  +                       if (!this.completeResponseIsCached) {
  +                           this.firstProcessedTransformerIndex--;
  +                       }
  +                    } else {
  +                        cachedPipelineKey = null;
  +                    }
  +                    finished = false;
  +                    this.completeResponseIsCached = false;
                   } else {
  +                    // stop on longest key for smart caching
  +                    finished = true;
                       cachedPipelineKey = null;
                   }
  -                // stop on longest key for smart caching
  -                finished = this.doSmartCaching;
  -                this.completeResponseIsCached = false;
               }
           }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message