Be less agressive with caching

Modification date seems to be incorrect in certain cases
get_value should still be improved to restore some level of caching
This commit is contained in:
Laurent Lasudry 2018-12-05 10:25:55 +01:00
parent d36cb6f360
commit 350616eac1
1 changed files with 1 additions and 4 deletions

View File

@ -35,10 +35,7 @@ class Column(z3c.table.column.Column, grok.MultiAdapter):
def _get_value_cachekey(method, request, item, attribute, default=None):
if hasattr(item, 'modified'):
return (item.getPath(), item.modified, attribute, default)
else:
return (item.getPath(), item.ModificationDate(), attribute, default)
return (item.getPath(), request.__dict__, attribute, default)
@ram.cache(_get_value_cachekey)