Repository
OCA/web-api · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.04 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/web-api
Last tracking update
2026-08-07 08:43:00
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
SilvioC2C, OCA-git-bot, oca-ci
Odoo dependencies
OCA/queue:
OCA/server-tools:
OCA/web-api:
odoo/odoo:
- web
- bus
Python dependencies
requests
System dependencies
None
Required by
None
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.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
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_preheat Boolean
    help='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_ts Datetime
    readonly=True string='Last pre-heat on'
Public methods (2)
  • action_preheat_cache_async(self)
  • cron_endpoint_cache_preheat(self)
    @api.model
    Cron job to preheat cache

Loading…