#NEWLINE# def save_cache( self , cache ) : #NEWLINE# #INDENT# if ( 'creation_time' not in cache ) : #NEWLINE# #INDENT# cache [ 'creation_time' ] = int ( time . time ( ) ) #NEWLINE# #UNINDENT# from . macro import Macro #NEWLINE# cache_location = Macro ( ) . parse ( Settings ( ) . get ( 'cache_file_location' ) ) #NEWLINE# cache_path = os . path . join ( cache_location , '.javatar-cache' ) #NEWLINE# if os . path . exists ( cache_path ) : #NEWLINE# #INDENT# os . remove ( cache_path ) #NEWLINE# #UNINDENT# cache_file = open ( cache_path , 'w' ) #NEWLINE# cache_file . write ( sublime . encode_value ( cache , True ) ) #NEWLINE# cache_file . close ( )