cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/transformation TraxTransformer.java
Date Wed, 08 Aug 2001 20:07:06 GMT
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:dims@yahoo.com">Davanum Srinivas</a>
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
    * @author <a href="mailto:giacomo@apache.org">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:     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