I'd suggest one of the examples from within Django itself - several of them clear relevant @lru_caches.
On Wed, 15 Jul 2020 at 14:22, '1337 Shadow Hacker' via Django developers (Contributions to Django itself) <django-developers@googlegroups.com> wrote: > disconnect/reconnect signals maybe ? > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/E4oyeqLRkl9RBI9Zjw5dgoKjS0rpQfyFIMkmqk9z5vp9373hAaJfaq0PnM91qGNyFbi5W-kU5C00eknDq36VT-Vze532AqNTzqSrXj_dfjU%3D%40protonmail.com > <https://groups.google.com/d/msgid/django-developers/E4oyeqLRkl9RBI9Zjw5dgoKjS0rpQfyFIMkmqk9z5vp9373hAaJfaq0PnM91qGNyFbi5W-kU5C00eknDq36VT-Vze532AqNTzqSrXj_dfjU%3D%40protonmail.com?utm_medium=email&utm_source=footer> > . > -- Adam -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM2wUBfutYFnfkUkT%2Bsa1J7Jt8hxvgU0to_F4LkgcPbA%2Bw%40mail.gmail.com.