fixed ccache, issue 1377

This commit is contained in:
mdipierro
2013-03-11 10:22:40 -05:00
parent 7991b555ff
commit 55c9392de4
4 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.2-stable+timestamp.2013.03.11.10.00.19
Version 2.4.2-stable+timestamp.2013.03.11.10.21.55
+4 -1
View File
@@ -319,6 +319,9 @@ def state():
def ccache():
cache.ram.initialize()
cache.disk.initialize()
form = FORM(
P(TAG.BUTTON(
T("Clear CACHE?"), _type="submit", _name="yes", _value="yes")),
@@ -385,7 +388,7 @@ def ccache():
return (hours, minutes, seconds)
for key, value in cache.ram.storage.items():
for key, value in cache.ram.storage.iteritems():
if isinstance(value, dict):
ram['hits'] = value['hit_total'] - value['misses']
ram['misses'] = value['misses']
@@ -319,6 +319,9 @@ def state():
def ccache():
cache.ram.initialize()
cache.disk.initialize()
form = FORM(
P(TAG.BUTTON(
T("Clear CACHE?"), _type="submit", _name="yes", _value="yes")),
@@ -385,7 +388,7 @@ def ccache():
return (hours, minutes, seconds)
for key, value in cache.ram.storage.items():
for key, value in cache.ram.storage.iteritems():
if isinstance(value, dict):
ram['hits'] = value['hit_total'] - value['misses']
ram['misses'] = value['misses']
+4 -1
View File
@@ -319,6 +319,9 @@ def state():
def ccache():
cache.ram.initialize()
cache.disk.initialize()
form = FORM(
P(TAG.BUTTON(
T("Clear CACHE?"), _type="submit", _name="yes", _value="yes")),
@@ -385,7 +388,7 @@ def ccache():
return (hours, minutes, seconds)
for key, value in cache.ram.storage.items():
for key, value in cache.ram.storage.iteritems():
if isinstance(value, dict):
ram['hits'] = value['hit_total'] - value['misses']
ram['misses'] = value['misses']