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
+1 -1
View File
@@ -23,7 +23,7 @@
'Administrative Interface': 'Interfaccia Amministrativa',
'Administrative interface': 'Interfaccia amministrativa',
'Ajax Recipes': 'Ajax Recipes',
'An error occured, please %s the page': "E' stato rilevato un errore, prego %s la pagina",
'An error occured, please %s the page': "È stato rilevato un errore, prego %s la pagina",
'And': 'E',
'appadmin is disabled because insecure channel': 'Amministrazione (appadmin) disabilitata: comunicazione non sicura',
'Are you sure you want to delete this object?': 'Sicuro di voler cancellare questo oggetto ?',
+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__