fixed cache and it.py, thanks Niphlod
This commit is contained in:
@@ -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
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user