fix(insights): Use lru_cache to reduce queries to instance settings
Problem
Lots of queries to instance settings
Changes
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
How did you test this code?
🔍 Existing Issues For Review
Your pull request is modifying functions with the following pre-existing issues:
📄 File: posthog/models/instance_setting.py
| Function | Unhandled Issue |
|---|---|
value |
JSONDecodeError: Expecting value: line 1 column 1 (char 0) /admin/posthog/instan... Event Count: 1 |
Did you find this useful? React with a 👍 or 👎
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant.