diff --git a/product/ERP5Type/Tool/MemcachedTool.py b/product/ERP5Type/Tool/MemcachedTool.py index a6aaca59bf857e0c8bfe5bc04d014311915e70f3..48be64f85546d5a4fd5d68e892f4f19d144b3935 100644 --- a/product/ERP5Type/Tool/MemcachedTool.py +++ b/product/ERP5Type/Tool/MemcachedTool.py @@ -27,7 +27,6 @@ # ############################################################################## -import time from threading import local from Products.ERP5Type.Tool.BaseTool import BaseTool from Products.ERP5Type import Permissions, _dtmldir @@ -96,8 +95,6 @@ if memcache is not None: self.local_cache = {} self.scheduled_action_dict = {} self.server_list = server_list - # see "Expiration times" from memcached protocol docs - self.expiration_time_since_epoch = expiration_time > (60*60*24*30) self.expiration_time = expiration_time self.server_max_key_length = server_max_key_length self.server_max_value_length = server_max_value_length @@ -130,8 +127,6 @@ if memcache is not None: """ try: expiration_time = self.expiration_time - if self.expiration_time_since_epoch: - expiration_time += time.time() for key, value in self.local_cache.iteritems(): if getattr(value, MEMCACHED_TOOL_MODIFIED_FLAG_PROPERTY_ID, None): delattr(value, MEMCACHED_TOOL_MODIFIED_FLAG_PROPERTY_ID)