Skip to content

Instantly share code, notes, and snippets.

@clayg
Created January 26, 2016 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/72f9ae5bf5d94fa6dd1f to your computer and use it in GitHub Desktop.
Save clayg/72f9ae5bf5d94fa6dd1f to your computer and use it in GitHub Desktop.
@@ -528,6 +526,8 @@ def get_info(app, env, account, container=None, ret_not_found=False,
# pick the one from environ[env_key] and use it to set the caller env
resp = req.get_response(app)
cache_key, env_key = _get_cache_key(account, container)
+ if env_key not in resp.environ:
+ _set_info_cache(app, req.environ, account, container, resp)
try:
info = resp.environ[env_key]
env[env_key] = info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment