Endpoint cache pre-heat
endpoint_cache_preheat · OCA/web-api
Health
67/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis
0 migration notes
1 model
1 view
0 HTTP endpoints
Description
Delay cache pre-heat for expensive endpoints.
If an endpoint takes to long to get cached, it will probably make your call fail or any cron job that calls it.
This module allows pre-heat the cache and delay its generation.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
endpoint_mixin_form_view |
endpoint.mixin | form | Inherits endpoint_cache.endpoint_mixin_form_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (2)
-
cache_preheatBooleanhelp='If checked, cache will be pre-heated by a cron according to the selected policy. Cache generation will be done in a queue job.'string='Automatic cache pre-heat' -
cache_preheat_tsDatetimereadonly=Truestring='Last pre-heat on'
-
action_preheat_cache_async(self) -
cron_endpoint_cache_preheat(self)@api.modelCron job to preheat cache
Loading…