def loadProxyFileCache(self, restoreFromFile = True): """ Initialize or update the proxy file cache for this proxy library. Will attempt to load a previous cache from file if restoreFromFile is true. """ import filecache self._proxyFilePerUuid = None if restoreFromFile: try: cacheFile = getpath.getPath(os.path.join('cache', self.proxyName + '_filecache.mhc')) if os.path.isfile(cacheFile): self._proxyFileCache = filecache.loadCache(cacheFile) except: log.debug("Failed to restore proxy list cache from file %s", cacheFile) self._proxyFileCache = proxy.updateProxyFileCache(self.paths, self.getFileExtension(), self._proxyFileCache, proxytype=self.getProxyType())
def loadProxyFileCache(self, restoreFromFile=True): """ Initialize or update the proxy file cache for this proxy library. Will attempt to load a previous cache from file if restoreFromFile is true. """ import filecache self._proxyFilePerUuid = None if restoreFromFile: try: cacheFile = getpath.getPath( os.path.join('cache', self.proxyName + '_filecache.mhc')) if os.path.isfile(cacheFile): self._proxyFileCache = filecache.loadCache(cacheFile) except: log.debug("Failed to restore proxy list cache from file %s", cacheFile) self._proxyFileCache = proxy.updateProxyFileCache( self.paths, self.getFileExtension(), self._proxyFileCache, proxytype=self.getProxyType())
def loadCache(self): import filecache filename = getpath.getPath('cache/skeleton_filecache.mhc') if os.path.isfile(filename): self._skelFileCache = filecache.loadCache(filename)
def loadCache(self): import filecache filename = getpath.getPath('cache/material_filecache.mhc') if os.path.isfile(filename): self._matFileCache = filecache.loadCache(filename)