#NEWLINE# def build_js_cache( self , force ) : #NEWLINE# #INDENT# "Build the :xfile:`lino*.js` file for the current user and the\n        current language.  If the file exists and is up to date, don't\n        generate it unless `force` is `True`.\n\n        This is called\n\n        - on each request if :attr:`build_js_cache_on_startup\n          <lino.core.site.Site.build_js_cache_on_startup>` is `False`.\n\n        - with `force=True` when\n          :class:`lino.modlib.lino.models.BuildSiteCache` action is\n          run.\n\n        " #NEWLINE# fn = os . path . join ( * self . lino_js_parts ( ) ) #NEWLINE# def write( f ) : #NEWLINE# #INDENT# self . write_lino_js ( f ) #NEWLINE# #UNINDENT# return settings . SITE . kernel . make_cache_file ( fn , write , write )