#NEWLINE# def render( self , context ) : #NEWLINE# #INDENT# self . prepare ( context ) #NEWLINE# ' Cached wrapper around self._render(). ' #NEWLINE# if ( getattr ( settings , 'DOUBLE_RENDER' , False ) and self . can_double_render ) : #NEWLINE# #INDENT# if ( 'SECOND_RENDER' not in context ) : #NEWLINE# #INDENT# return self . double_render ( ) #NEWLINE# #UNINDENT# #UNINDENT# key = self . get_cache_key ( ) #NEWLINE# if key : #NEWLINE# #INDENT# rend = cache . get ( key ) #NEWLINE# if ( rend is None ) : #NEWLINE# #INDENT# rend = self . _render ( context ) #NEWLINE# cache . set ( key , rend , core_settings . CACHE_TIMEOUT ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# rend = self . _render ( context ) #NEWLINE# #UNINDENT# return rend