mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
Previously, every function which had the @json_* decorators on it would independently call get_client when views.py was imported; we resolve this using a small bit of in-memory caching, which is safe since Client objects are immutable. This also more generally cleans up the code path to be more common between the API and JSON views. (imported from commit 674ea327fc4cb5fa982a75e388f0b604bae66567)
16 KiB
16 KiB