def _create_meta_cache(self):
        """ Try to dump metadata to a file. """
        try:
            with open(self._cache_filename, 'wb') as f:
                compat.pickle.dump(self._document_meta, f, 1)
        except (IOError, compat.pickle.PickleError):
            pass
Try to dump metadata to a file.