Use a key function that is safe for use w/ memcache
This is needed for the asset-pipeline. The pipeline has to map a requested asset name ('css/application.css') to a string that encodes the file contents ('css/application.12323423abcf.css'). It caches these associations in memcache. We have the potential for filenames with spaces in them, which memcache can't handle, so we need to escape the cache keys in such a way that memcache can handle them.
It puts these in a cache named 'staticfiles' (http://django-staticfiles.readthedocs.org/en/latest/helpers/#cachedstaticfilesstorage). In the future, it may make sense to put that cache onto the filesystem, rather than memcache, but we should do that only after performance testing.
| Name |
Last commit
|
Last update |
|---|---|---|
| djangoapps | Loading commit data... | |
| envs | Loading commit data... | |
| fixtures | Loading commit data... | |
| lib | Loading commit data... | |
| static | Loading commit data... | |
| templates | Loading commit data... | |
| test_root | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .hgignore | Loading commit data... | |
| Gemfile | Loading commit data... | |
| Gemfile.lock | Loading commit data... | |
| LICENSE.TXT | Loading commit data... | |
| __init__.py | Loading commit data... | |
| collect_static_resources | Loading commit data... | |
| manage.py | Loading commit data... | |
| pre-requirements.txt | Loading commit data... | |
| rakefile | Loading commit data... | |
| requirements.txt | Loading commit data... | |
| test-requirements.txt | Loading commit data... | |
| urls.py | Loading commit data... |