fixed cache and it.py, thanks Niphlod

This commit is contained in:
Massimo
2013-03-22 15:38:05 -05:00
parent dab4950f14
commit 30ea9ac56b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -457,7 +457,7 @@ class Cache(object):
public: if False forces the Cache-Control to be 'private'
valid_statuses: by default only status codes starting with 1,2,3 will be cached.
pass an explicit list of statuses on which turn the cache on
quick: Session,Vars,Lang,User-agent,Public,duration:
quick: Session,Vars,Lang,User-agent,Public:
fast overrides with initial strings, e.g. 'SVLP' or 'VLP', or 'VLP'
"""
from gluon import current
@@ -512,7 +512,7 @@ class Cache(object):
current.response.headers['Expires'] = expires
current.response.headers['Cache-Control'] = cache_control
if cache_model and not send_headers:
cache_model.clear(cache_key)
cache_model(cache_key, None)
return rtn
return func()
wrapped_f.__name__ = func.__name__