Commits

Matt Chaput committed f332002

Fixed logic in set_caching_policy() method.

Comments (0)

Files changed (1)

src/whoosh/filedb/filereading.py

         if not cp:
             if save and storage is None:
                 storage = self.storage
-            else:
+            elif not save:
                 storage = None
             cp = DefaultFieldCachingPolicy(self.segment.name, storage=storage)