Commits

Alan Justino committed c0c848b

BUG: .path() disabled for now, as it slows down collectstatic

  • Participants
  • Parent commits 796dda4
  • Branches filecache_storage_proposal

Comments (0)

Files changed (1)

File storages/backends/filecache.py

         :type name: str
         :rtype: str
         """
-        try:
-            return self._get_storage(name).path(name)
-        except NotImplementedError, e:
-            if self.using_cache(name):
-                raise
-            else: # Maybe is worth to try with cache_storage if master failed
-                self._transfer(name, origin=self.master_storage, destiny=self.cache_storage)
-                return self.cache_storage.path(name)
+        raise NotImplementedError()
+        #try:
+        #    return self._get_storage(name).path(name)
+        #except NotImplementedError, e:
+        #    if self.using_cache(name):
+        #        raise
+        #    else: # Maybe is worth to try with cache_storage if master failed
+        #        self._transfer(name, origin=self.master_storage, destiny=self.cache_storage)
+        #        return self.cache_storage.path(name)
 
 
 class FileSystemCachedS3BotoStorage(FileCacheMixin, Storage):