Fixed caching of LDAP results

This commit is contained in:
Frédéric Péters 2010-06-14 14:24:33 +02:00
parent 63b5f8305d
commit bd7f6f60e8
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ def cache_key(method, self):
# append time, so old entries do not get returned forever; (they will still
# get removed as stale entries are automatically removed after 3 days)
# (cf plone/memoize/volatile.py)
return hash(self) + repr(int(time.time()) / 300)
return '%s_%s' % (hash(self), (int(time.time()) / 300))
class PcfAnnuaire(BaseContent):