|
|
|
|
209
|
self._cached_props[self.UID_TAG] = self._source_instance.uid()
|
209
|
self._cached_props[self.UID_TAG] = self._source_instance.uid()
|
210
|
self._cached_props[self.DATA_VERSION_TAG] = self._source_instance.data_version()
|
210
|
self._cached_props[self.DATA_VERSION_TAG] = self._source_instance.data_version()
|
211
|
self._cached_props[self.STORAGE_VERSION_TAG] = self.STORAGE_VERSION
|
211
|
self._cached_props[self.STORAGE_VERSION_TAG] = self.STORAGE_VERSION
|
212
|
- self._save_cache()
|
|
|
|
|
212
|
+ if self._store_on_get:
|
|
|
213
|
+ self._save_cache()
|
213
|
|
214
|
|
214
|
def _load_cache(self):
|
215
|
def _load_cache(self):
|
215
|
if os.path.exists(self._cache_filename):
|
216
|
if os.path.exists(self._cache_filename):
|