I'm happen to find out call Storage only do cleanup when new Entry comes and do nothing when entries get from storage. So entries will be next expired if there are only read activities.
So I suggest we may change the getEntry as below:
def getEntry(self, ob, key):
# start of insert
if self.lastCleanup <= time() - self.cleanupInterval:
self.cleanup()
# end of insert
try:
data = ""> except KeyError:
if ob not in self._misses:
self._misses[ob] = 0
self._misses[ob] += 1
raise
else:
data[2] += 1 # increment access count
return data[0]
Can somebody update this into the repository?
Thanks,
Simon
_______________________________________________ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com