The "doctrine/cache" dependency is deprecated #6813

Open
opened 2026-01-22 15:39:16 +01:00 by admin · 1 comment
Owner

Originally created by @jazithedev on GitHub (Sep 1, 2021).

Hello 👋,

The doctrine/cache package is deprecated and unmaintained, but it is still a strict dependency of the doctrine/orm. Is there a way to replace doctrine/orm with any other package, like for example symfony/cache? Are there any plans to remove that deprecated package from doctrine/orm?

All best!
Chris

Originally created by @jazithedev on GitHub (Sep 1, 2021). Hello 👋, The `doctrine/cache` package is deprecated and unmaintained, but it is still a strict dependency of the `doctrine/orm`. Is there a way to replace `doctrine/orm` with any other package, like for example `symfony/cache`? Are there any plans to remove that deprecated package from `doctrine/orm`? All best! Chris
admin added the ImprovementDeprecation labels 2026-01-22 15:39:16 +01:00
Author
Owner

@derrabus commented on GitHub (Sep 1, 2021):

Yes, we need to get Doctrine Cache out of all interfaces eventually. For now, the recommendation is to use the only part of Doctrine Cache that is not deprecated (= the PSR-6 wrapper classes) and use Symfony Cache or whatever cache library your prefer.

Apart from that: PRs that phase out Doctrine Cache in favor of PSR-6 are more than welcome.

@derrabus commented on GitHub (Sep 1, 2021): Yes, we need to get Doctrine Cache out of all interfaces eventually. For now, the recommendation is to use the only part of Doctrine Cache that is not deprecated (= the PSR-6 wrapper classes) and use Symfony Cache or whatever cache library your prefer. Apart from that: PRs that phase out Doctrine Cache in favor of PSR-6 are more than welcome.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6813