def load_function_module_by_id(function_id, content=None):
...
function = Functions.get_function_by_id(function_id)
...
Desired Solution you'd like
Add a function cache
Alternatives Considered
No response
Additional Context
No response
Originally created by @U8F69 on GitHub (May 27, 2025).
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### Problem Description
This commit (https://github.com/open-webui/open-webui/commit/74ace200fead4fe407fce9868d0ba47bb3032add) removes the function cache, resulting in a significant increase in unnecessary database queries when using filters. Additionally, the database bandwidth usage now depends on the length of the filter code.
```
def load_function_module_by_id(function_id, content=None):
...
function = Functions.get_function_by_id(function_id)
...
```
### Desired Solution you'd like
Add a function cache
### Alternatives Considered
_No response_
### Additional Context
_No response_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @U8F69 on GitHub (May 27, 2025).
Check Existing Issues
Problem Description
This commit (https://github.com/open-webui/open-webui/commit/74ace200fead4fe407fce9868d0ba47bb3032add) removes the function cache, resulting in a significant increase in unnecessary database queries when using filters. Additionally, the database bandwidth usage now depends on the length of the filter code.
Desired Solution you'd like
Add a function cache
Alternatives Considered
No response
Additional Context
No response
@tjbck commented on GitHub (May 27, 2025):
intended behaviour.
@U8F69 commented on GitHub (May 27, 2025):
But we observed an increase in CPU for both open-webui and postgres, about 30%