Commit 8395982f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

explicitly specify minimal cache factories to be cleared.

parent 010f20d2
...@@ -88,8 +88,10 @@ class TestAuthenticationPolicy(ERP5TypeTestCase): ...@@ -88,8 +88,10 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
self.tic() self.tic()
def _clearCache(self): def _clearCache(self):
for cache_factory in [x for x in self.portal.portal_caches.getCacheFactoryList() if x!="erp5_session_cache"]: self.portal.portal_caches.clearCache(
self.portal.portal_caches.clearCacheFactory(cache_factory) cache_factory_list=('erp5_ui_short', # for preference cache
'erp5_content_short', # for authentication cache
))
def _getPasswordEventList(self, person): def _getPasswordEventList(self, person):
return [x.getObject() for x in self.portal.portal_catalog( return [x.getObject() for x in self.portal.portal_catalog(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment