vgritsenko    01/08/08 13:07:06

  Modified:    src/org/apache/cocoon/transformation TraxTransformer.java
  Log:
  Remove parameter/value from validity as this info is present in the key
  
  Revision  Changes    Path
  1.26      +8 -10     
xml-cocoon2/src/org/apache/cocoon/transformation/TraxTransformer.java
  
  Index: TraxTransformer.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/org/apache/cocoon/transformation/TraxTransformer.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- TraxTransformer.java      2001/07/17 15:22:13     1.25
  +++ TraxTransformer.java      2001/08/08 20:07:06     1.26
  @@ -100,7 +100,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Davanum Srinivas</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Carsten Ziegeler</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Giacomo Pati</a>
  - * @version CVS $Id: TraxTransformer.java,v 1.25 2001/07/17 15:22:13 cziegeler Exp $
  + * @version CVS $Id: TraxTransformer.java,v 1.26 2001/08/08 20:07:06 vgritsenko Exp 
$
    */
   public class TraxTransformer extends AbstractTransformer
   implements Transformer, Composable, Recyclable, Configurable, Cacheable, 
Disposable, URIResolver {
  @@ -394,16 +394,14 @@
        *         component is currently not cacheable.
        */
       public CacheValidity generateValidity() {
  +        /*
  +        * VG: Key is generated using parameter/value pairs,
  +        * so this information does not need to be verified again
  +        * (if parameter added/removed or value changed, key should
  +        * change also), only stylesheet's modified time is included.
  +        */
           if (this.inputSource.getLastModified() != 0) {
  -            HashMap map = getLogicSheetParameters();
  -            if (map == null) {
  -                return new 
TimeStampCacheValidity(this.inputSource.getLastModified());
  -            } else {
  -                return new CompositeCacheValidity(
  -                    new ParametersCacheValidity(map),
  -                    new TimeStampCacheValidity(this.inputSource.getLastModified())
  -                );
  -            }
  +            return new TimeStampCacheValidity(this.inputSource.getLastModified());
           }
           return null;
       }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to