jenkinsci / jenkinsci/workflow-api-plugin

[JENKINS-65828] I'd like to know how to cache data in jenkins

Open
#506 1 comment 0 reactions 0 assignees View on GitHub
component:workflow-api-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
31
Forks
80
Avg merge
1d 16h
Merged PRs (30d)
1

Description

Hi team,

I meet one problem when I use Jenkins REST API to get job json, like api/json, wfapi/runs etc.  first REST API response time become more slower after restart jenkins;

the second time, it will be faster;

my question is Jenkins will cache api data in memory? and after restart jenkins, these cache data will be cleaned?

as you know, if there are manys jobs or builds in jenkins. REST api will take few time to get them;

especially, after restart jenkins, frist time, getting job info will take long time.

so Could you explain jenkins how to cache data by default?  is there  any solution to keep cache in jenkins to ensure getting job info faster?

---
Originally reported by zhongjun2020, imported from: I'd like to know how to cache data in jenkins


  • status: Open
  • priority: Major
  • component(s): workflow-api-plugin
  • label(s): REST, jenkins
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20260601-173816

Raw content of original issue

Hi team,

I meet one problem when I use Jenkins REST API to get job json, like api/json, wfapi/runs etc.  first REST API response time become more slower after restart jenkins;

the second time, it will be faster;

my question is Jenkins will cache api data in memory? and after restart jenkins, these cache data will be cleaned?

as you know, if there are manys jobs or builds in jenkins. REST api will take few time to get them;

especially, after restart jenkins, frist time, getting job info will take long time.

so Could you explain jenkins how to cache data by default?  is there  any solution to keep cache in jenkins to ensure getting job info faster?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.