169 |
169 |
170 class ConcatFiles(LongTimeExpiringFile): |
170 class ConcatFiles(LongTimeExpiringFile): |
171 def __init__(self, config, paths): |
171 def __init__(self, config, paths): |
172 _, ext = osp.splitext(paths[0]) |
172 _, ext = osp.splitext(paths[0]) |
173 # create a unique / predictable filename |
173 # create a unique / predictable filename |
174 fname = hashlib.md5(';'.join(paths)).hexdigest() + ext |
174 fname = 'cache_concat_' + hashlib.md5(';'.join(paths)).hexdigest() + ext |
175 filepath = osp.join(config.appdatahome, 'uicache', fname) |
175 filepath = osp.join(config.appdatahome, 'uicache', fname) |
176 LongTimeExpiringFile.__init__(self, config, filepath) |
176 LongTimeExpiringFile.__init__(self, config, filepath) |
177 self._concat_cached_filepath(filepath, paths) |
177 self._concat_cached_filepath(filepath, paths) |
178 |
178 |
179 def _concat_cached_filepath(self, filepath, paths): |
179 def _concat_cached_filepath(self, filepath, paths): |