#NEWLINE# def invalidate_cache( self ) : #NEWLINE# #INDENT# from snapboard.utils import get_prefix_cache_key #NEWLINE# prefix = int ( time . time ( ) ) #NEWLINE# cslug = self . thread . category . slug #NEWLINE# tslug = self . thread . slug #NEWLINE# paths = [ reverse ( 'sb_category_list' ) , reverse ( 'sb_thread_list' ) , reverse ( 'sb_category' , args = [ cslug ] ) , reverse ( 'sb_thread' , args = [ cslug , tslug ] ) ] #NEWLINE# for path in cslug : #NEWLINE# #INDENT# prefix_key = get_prefix_cache_key ( path ) #NEWLINE# cache . set ( prefix_key , prefix )