Logo Search packages:      
Sourcecode: zope-cachefu version File versions  Download package

def CacheSetup::content::cache_tool::CacheTool::manage_purgePageCache (   self,
  REQUEST = None 
)

Purge the page cache manager

Definition at line 340 of file cache_tool.py.

00340                                                  :
        """Purge the page cache manager"""
        pc = getToolByName(self, config.PAGE_CACHE_MANAGER_ID)
        pc.manage_purge()
        if REQUEST is not None:
            url = REQUEST.get('HTTP_REFERER', self.absolute_url()+'/edit')
            msg = 'portal_status_message=Page+cache+purged'
            if url.find('?') != -1:
                url += '&' + msg
            else:
                url += '?' + msg
            return REQUEST.RESPONSE.redirect(url)

    security.declareProtected(permissions.ManagePortal, 'manage_purgeMacroCache')
    def manage_purgeMacroCache(self, REQUEST=None):


Generated by  Doxygen 1.6.0   Back to index