MCPcopy
hub / github.com/django/django / close_caches

Function close_caches

django/core/cache/__init__.py:61–64  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

59
60
61def close_caches(**kwargs):
62 # Some caches need to do a cleanup at the end of a request cycle. If not
63 # implemented in a particular backend cache.close() is a no-op.
64 caches.close_all()
65
66
67signals.request_finished.connect(close_caches)

Callers 1

clear_cache_handlersFunction · 0.90

Calls 1

close_allMethod · 0.80

Tested by

no test coverage detected