j2labs/brubeck — Issue #41: File caching for complex templates
Author: minikomi
Created: 2011-11-01 08:30:17+00:00
State: open

I'm fairly new to python but thought something like this might help in some cases where pages are known to stay fairly static for a time.. Just a sketch, and completely non-functional but a start:

https://gist.github.com/1330153

To be added to get / post methods as a decorator with an argument in seconds

eg:
# caches for a minute.
@filecache(60)
def get(self):
etc..