MCPcopy
hub / github.com/django/django / clear_cache

Method clear_cache

django/contrib/contenttypes/models.py:118–122  ·  view source on GitHub ↗

Clear out the content-type cache.

(self)

Source from the content-addressed store, hash-verified

116 return ct
117
118 def clear_cache(self):
119 """
120 Clear out the content-type cache.
121 """
122 self._cache.clear()
123
124 def _add_to_cache(self, using, ct):
125 """Insert a ContentType into the cache."""

Callers 3

_renameMethod · 0.45
create_contenttypesFunction · 0.45
handleMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected