10000 The need for cache warmers · Issue #2618 · api-platform/core · GitHub
[go: up one dir, main page]

Skip to content
The need for cache warmers #2618
@bendavies

Description

@bendavies

Hello,

Currently, Api Platform does not ship with any cache warmers.
This typically makes the first request to each route slow as a cache is primed on demand. (hitting one api route does not prime all routes, so the effect is compounded).

I've just been hit by a stampede in production because of this, causing a small outage, so not ideal.

The following classes are candidates for being warmed:

However, this is not so easy.
The starred (*) factories take an array of $options, which are currently not known in the CLI context, and are provided from the router/current request, and will vary per route.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0