Skip to content
Snippets Groups Projects
  1. Jul 08, 2012
  2. Mar 24, 2012
  3. Jan 21, 2012
    • Mike Bayer's avatar
      - [feature] Added support for Beaker cache regions · 8109f791
      Mike Bayer authored
        in templates.   Usage of regions should be considered
        as superseding the very obsolete idea of passing in
        backend options, timeouts, etc. within templates.
      - rewrite the cache docs again which had a lot of misleading/inaccurate
      info.
      8109f791
  4. Jan 18, 2012
  5. Jan 16, 2012
    • Mike Bayer's avatar
      - [feature/bug] Can now refer to context variables · 2879f8bc
      Mike Bayer authored
        within extra arguments to <%block>, <%def>, i.e.
        <%block name="foo" cache_key="${somekey}">.
        Filters can also be used in this way, i.e.
        <%def name="foo()" filter="myfilter">
        then template.render(myfilter=some_callable)
        [ticket:180]
      2879f8bc
  6. Jan 12, 2012
  7. Oct 01, 2011
    • Mike Bayer's avatar
      - Template caching has been converted into a plugin · 643701f1
      Mike Bayer authored
        system, whereby the usage of Beaker is just the
        default plugin.   Template and TemplateLookup
        now accept a string "cache_impl" parameter which
        refers to the name of a cache plugin, defaulting
        to the name 'beaker'.  New plugins can be
        registered as pkg_resources entrypoints under
        the group "mako.cache", or registered directly
        using mako.cache.register_plugin().  The
        core plugin is the mako.cache.CacheImpl
        class.
      
      - The <%def>, <%block> and <%page> tags now accept
        any argument named "cache_*", and the key
        minus the "cache_" prefix will be passed as keyword
        arguments to the CacheImpl methods.
      
      - Template and TemplateLookup now accept an argument
        cache_args, which refers to a dictionary containing
        cache parameters.  The cache_dir, cache_url, cache_type,
        cache_timeout arguments are deprecated (will probably
        never be removed, however) and can be passed
        now as cache_args={'url':<some url>, 'type':'memcached',
        'timeout':50, 'dir':'/path/to/some/directory'}
      643701f1
  8. Jan 19, 2011
  9. Mar 02, 2010
  10. Feb 05, 2010
  11. Oct 25, 2008
    • Mike Bayer's avatar
      - beaker bump · a6793784
      Mike Bayer authored
      - added "cache_enabled=True" flag to Template,
        TemplateLookup.  Setting this to False causes cache
        operations to "pass through" and execute every time;
        this flag should be integrated in Pylons with its own
        cache_enabled configuration setting.
      a6793784
  12. Oct 17, 2008
  13. Sep 27, 2008
    • Mike Bayer's avatar
      - added "cache" accessor to Template, Namespace. · 041b60f5
      Mike Bayer authored
        e.g.  ${local.cache.get('somekey')} or
        template.cache.invalidate_body()
      
      - the Cache object now supports invalidate_def(name),
        invalidate_body(), invalidate_closure(name),
        invalidate(key), which will remove the given key
        from the cache, if it exists.  The cache arguments
        (i.e. storage type) are derived from whatever has
        been already persisted for that template.
        [ticket:92]
      041b60f5
  14. Jun 23, 2008
  15. May 03, 2008
  16. Mar 01, 2008
  17. Jan 19, 2008
  18. Mar 27, 2007
  19. Mar 10, 2007
  20. Mar 01, 2007
  21. Jan 02, 2007
  22. Dec 13, 2006
  23. Dec 12, 2006
  24. Dec 09, 2006
  25. Dec 05, 2006
  26. Dec 04, 2006
Loading