def clear_caches():
 global FS_CACHE, MR_CACHE
 old = (FS_CACHE, MR_CACHE)
 (FS_CACHE, MR_CACHE) = (None, None)
 return old

def clear_caches ( ) : global FS_CACHE , MR_CACHE old = ( FS_CACHE , MR_CACHE ) ( FS_CACHE , MR_CACHE ) = ( None , None ) return old
jinja2 keeps internal caches for environments and lexers .