(cache)
| 1865 | = cache.modified_collections = cache.collection_statistics = cache.dbvals_deduplication_cache = None |
| 1866 | @contextmanager |
| 1867 | def flush_disabled(cache): |
| 1868 | cache.noflush_counter += 1 |
| 1869 | try: yield |
| 1870 | finally: cache.noflush_counter -= 1 |
| 1871 | def flush(cache): |
| 1872 | if cache.noflush_counter: return |
| 1873 | assert cache.is_alive |