Skip to content

Metadata cache uses ArrayAdapter instead of APCu #4975

Description

@usu

API Platform version(s) affected: 3.0.0

Description
3.0 uses ArrayAdapter as Metadata Cache. In 2.7 the default was to utilize APCu when it was installed.

Was this changed by purpose?

--> If yes, I couldn't find this documented. The docu still says:

If the Symfony Cache component is available (the default in the API Platform distribution), it automatically enables support for the best cache adapter available.

--> If no, I think the following commit introduced the issue:
c76720e

Or do I need to change any config on my side during 3.0 upgrade?

How to reproduce
Upgrade to 3.0
Check symfony profiler for cache hit rate, which is significantly lower than before, as no Metadata is cached between separate requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions