Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

How to warmup the annotation cache in API Platform 2.7 #2770

Unanswered
wolfsblu asked this question in Q&A
Discussion options

Hello! I am having a little trouble with the cache:clear command not pre generating some of the annotations. For example, when I empty the var/cache folder and execute cache:clear initially, I get the following disk usage:

# du -s var/cache/
25424   var/cache/

When I then perform an API call to one of my endpoints, the initial request takes rather long and the cache size will increase:

# du -s var/cache/
30356   var/cache/

Any subsequent API calls will not increase the cache size, so I was wondering, is there some way to warm up the cache so the initial request won't take as long?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.