0

added a memcached option. It's really slow though. don't use it.

This commit is contained in:
Andrew Brown
2012-03-04 22:25:38 -05:00
parent d1f53cc910
commit 98c23fd970
4 changed files with 38 additions and 4 deletions

View File

@@ -350,6 +350,8 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
# Set up the cache objects to use
caches = []
caches.append(cache.LRUCache(size=100))
if config.get("memcached_host", False):
caches.append(cache.Memcached(config['memcached_host']))
# TODO: optionally more caching layers here
renders = config['renders']