def _cleanStats(self):
     # cleans all involved cache and log files
     nuke_eventlog(self.request)
     # hits is based on hitcounts which reads the cache
     caching.CacheEntry(self.request, 'charts', 'hitcounts', scope='wiki').remove()
     arena = Page(self.request, self.pagename)
     caching.CacheEntry(self.request, arena, 'hitcounts', scope='item').remove()
 def setup_class(self):
     request = self.request
     become_trusted(request)
     self.page = create_page(request, self.pagename, u"Foo!")
     # for that test eventlog needs to be empty
     nuke_eventlog(request)
     # hits is based on hitcounts which reads the cache
     caching.CacheEntry(request, 'charts', 'hitcounts', scope='wiki').remove()
Exemple #3
0
 def _cleanStats(self):
     # cleans all involved cache and log files
     nuke_eventlog(self.request)
     # hits is based on hitcounts which reads the cache
     caching.CacheEntry(self.request, 'charts', 'hitcounts',
                        scope='wiki').remove()
     arena = Page(self.request, self.pagename)
     caching.CacheEntry(self.request, arena, 'hitcounts',
                        scope='item').remove()
Exemple #4
0
 def setup_class(self):
     request = self.request
     become_trusted(request)
     self.page = create_page(request, self.pagename, u"Foo!")
     # for that test eventlog needs to be empty
     nuke_eventlog(request)
     # hits is based on hitcounts which reads the cache
     caching.CacheEntry(request, 'charts', 'hitcounts',
                        scope='wiki').remove()