Changeset 1151

Show
Ignore:
Timestamp:
10/08/03 23:12:27 (21 years ago)
Author:
jalet
Message:

Do not cache anymore entries which don't exist.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storage.py

    r1148 r1151  
    2222# 
    2323# $Log$ 
     24# Revision 1.25  2003/10/08 21:12:27  jalet 
     25# Do not cache anymore entries which don't exist. 
     26# 
    2427# Revision 1.24  2003/10/07 22:06:05  jalet 
    2528# Preliminary code to disable job history 
     
    342345    def cacheEntry(self, cachetype, key, value) :         
    343346        """Puts an entry in the cache.""" 
    344         if self.usecache : 
     347        if self.usecache and getattr(value, "Exists", 0) : 
    345348            self.caches[cachetype][key] = value 
    346349            self.tool.logdebug("Cache store (%s->%s)" % (cachetype, key))