Endpoint cache pre-heat

endpoint_cache_preheat
REPOSITORY
REPOSITORYOCA/web-api
GIT
GIThttps://github.com/OCA/web-api.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/web-api/tree/18.0/endpoint_cache_preheat
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSOCA-git-bot, SilvioC2C, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/web-api
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/queue:
    - queue_job
OCA/server-tools:
    - rpc_helper
OCA/web-api:
    - endpoint_cache
    - endpoint
    - endpoint_route_handler
odoo/odoo:
    - base_sparse_field
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES requests
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits endpoint_cache.endpoint_mixin_form_view
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
REPOSITORY
REPOSITORYOCA/web-api
GIT
GIThttps://github.com/OCA/web-api.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/web-api/tree/14.0/endpoint_cache_preheat
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Simone Orsi, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/web-api
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/queue:
    - queue_job
OCA/server-tools:
    - rpc_helper
OCA/web-api:
    - endpoint_cache
    - endpoint
    - endpoint_route_handler
odoo/odoo:
    - base_sparse_field
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES requests
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
endpoint_mixin_form_view endpoint.mixin xpath Inherits endpoint_cache.endpoint_mixin_form_view
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