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

def CPSSkins::PortalTheme::PortalTheme::getCacheStats (   self  ) 

Returns statistics about the cache.

Definition at line 1216 of file PortalTheme.py.

01216                            :
        """Returns statistics about the cache.
        """
        cache = self.getTempletCache()
        if cache is None:
            return None
        stats = cache.getStats()
        count = stats['count']
        hits = stats['hits']
        size = stats['size']
        if count > 0:
            effectivity = 100 * hits / count
        else:
            effectivity = 100
        return {'effectivity': effectivity,
                'size': size, }

    security.declarePublic('getCacheReport')
    def getCacheReport(self):


Generated by  Doxygen 1.6.0   Back to index