Skip to content
Myr

Ticket #292 - Allow the results of subclasses of the PythonTranslator to be cached as well.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Lakin Wecker · committed by Lakin Wecker · parent 292c9d3 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:jinja/loaders.py+2 added-2 removed
237 unmodified lines
238 self.__lock.acquire()239 try:240 # caching is only possible for the python translator. skip241 # all other translators242 if translator is not PythonTranslator:242 if isinstance(translator, PythonTranslator):243 return super(CachedLoaderMixin, self).load(244 environment, name, translator)245246 tmpl = None
115 unmodified lines
362 self.__lock.acquire()363 try:364 # caching is only possible for the python translator. skip365 # all other translators366 if translator is not PythonTranslator:366 if isinstance(translator, PythonTranslator):367 return super(MemcachedLoaderMixin, self).load(368 environment, name, translator)369 tmpl = None370 push_to_memory = False
455 unmodified lines