+ self.ws = SimaFM()
+ # Set persitent cache
+ vardir = daemon.config['sima']['var_dir']
+ persitent_cache = daemon.config.getboolean('lastfm', 'cache')
+ if persitent_cache:
+ SimaFM.cache = FileCache(join(vardir, 'http', 'LastFM'))
+ else:
+ SimaFM.cache = DictCache()