Esempio n. 1
0
    def render(self):
        from plone.app.upgrade.v40.alphas import removeBrokenCacheFu
        context = aq_inner(self.context)

        removeBrokenCacheFu(context)

        return 'done'
Esempio n. 2
0
 def remove_cachefu(self):
     """Remove cache fu (done often  too late in plonemigration)"""
     alphas.removeBrokenCacheFu(self.context)
     knowns = [
         self.path + '/portal_cache_settings',
         self.path + '/portal_squid',
         self.path + '/CacheSetup_PageCache',
         self.path + '/caching_policy_manager',
         self.path + '/HTTPCache',
         self.path + '/CacheSetup_OFSCache',
         self.path + '/CacheSetup_ResourceRegistryCache',
     ]
     upgrades.commit(self.context)
     not_deleted = []
     for path in knowns:
         if (not self.delete_path(path) and (not path in not_deleted)):
             not_deleted.append(path)
     manage_addCachingPolicyManager(self.context)
     addCacheHandlers(self.context)
     addCacheForResourceRegistry(self.context)
Esempio n. 3
0
 def remove_cachefu(self):
     """Remove cache fu (done often  too late in plonemigration)"""
     alphas.removeBrokenCacheFu(self.context)
     knowns = [
         self.path + '/portal_cache_settings',
         self.path + '/portal_squid',
         self.path + '/CacheSetup_PageCache',
         self.path + '/caching_policy_manager',
         self.path + '/HTTPCache',
         self.path + '/CacheSetup_OFSCache',
         self.path + '/CacheSetup_ResourceRegistryCache',
     ]
     upgrades.commit(self.context)
     not_deleted = []
     for path in knowns:
         if (not self.delete_path(path)
             and (not path in not_deleted)):
             not_deleted.append(path)
     manage_addCachingPolicyManager(self.context)
     addCacheHandlers(self.context)
     addCacheForResourceRegistry(self.context)