I mean, some of the same downsides as memoized, i.e. stale cache. But I
agree, it's a super useful tool.


On Tue, Oct 8, 2013 at 3:30 AM, Simon Kelly <notifications@github.com>wrote:

> In corehq/apps/domain/utils.py:
>
> > @@ -33,6 +37,7 @@ def get_domain_from_url(path):
> >      return domain
> >
> >
> > +@lru_cache(1, timeout=30)
>
> Is there a reason why we wouldn't don't use lru_cache everywhere?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dimagi/commcare-hq/pull/1413/files#r6818590>
> .
>