Skip to content

APC and doctrine cache are not to use - framework documentation indicate to use abandonned components with no alternative #17260

Closed
@bruno-ds

Description

@bruno-ds

This page https://symfony.com/doc/4.4/reference/configuration/framework.html#validation
indicate:

cache

type: string

The service that is used to persist class metadata in a cache. The service has to implement the CacheInterface.

Set this option to validator.mapping.cache.doctrine.apc to use the APC cache provided by the Doctrine project.

this is wrong two times:

  • APC is discontinued, APCu-bc provide a compatibility layer but "As of PHP 8.0.0, apcu-bc is no longer supported" (source)
  • doctrine cache is deprecated and will no longer receive bug fixes from the Doctrine Project (source)

So the documentation should not stipulate:

Set this option to validator.mapping.cache.doctrine.apc to use the APC cache provided by the Doctrine project.

What the doc should stipulate?

Honestly, I don't know (I'm in the process of migrating to php 8 and so out of apcu-bc and validator.mapping.cache.doctrine.apc :/)

NB: I don't know if the doc is just out of date or if symfony still uses doctrine's APC cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions