See jcollado answer for the first three questions. To question 4:
The documentation says that these modules are cached in memory. How is this different from caching through Beaker?
These cache two different things. A glass (or everything that you set in cache_impl
) gives the resulting cache. If you set module_directory
, Python modules compiled from mako files will be saved here. An image may explain this better:
context variables | v Template() render() .mako file -------------> python module (.py, .pyc) -----------> output : : | | cached in cached module_directory via Beaker
Petr Viktorin
source share