fix ccache page in appadmin, thanks MDSIII

fixes the ccache page to now raise an exception if a dict is stored in
cache
This commit is contained in:
niphlod
2016-10-07 21:14:56 +02:00
parent e6a3081b42
commit 39e8cfb11a
3 changed files with 9 additions and 12 deletions
+1 -2
View File
@@ -465,8 +465,7 @@ def ccache():
ram['keys'].append((key, GetInHMS(time.time() - value[0])))
for key in cache.disk.storage:
value = cache.disk.storage[key]
if isinstance(value[1], dict):
if key == 'web2py_cache_statistics' and isinstance(value[1], dict):
disk['hits'] = value[1]['hit_total'] - value[1]['misses']
disk['misses'] = value[1]['misses']
try: