Skip to content

DoctrineCacheBundle deprecated #13275

@hackzilla

Description

@hackzilla

I've started getting this message, and other similar messages, in my Symfony v3 app.

Using the "memcached" type for cache "metadata_cache_driver" is deprecated since DoctrineBundle 1.12 and will be dropped in 2.0. Please use the "service" or "pool" types exclusively.

After digging, I have found out that DoctrineCacheBundle has been deprecated.

This bundle is deprecated; it will not be updated for Symfony 5. If you want to use doctrine/cache in Symfony, please configure the services manually. When using Symfony, we no longer recommend configuring doctrine/cache through this bundle. Instead, you should use symfony/cache for your cache needs. However, the deprecation does not extend to doctrine/cache, you'll be able to use those classes as you did so far.

https://github.com/doctrine/DoctrineCacheBundle

However, the page on Symfony about Doctrine Configuration, still talks about the old way.
https://symfony.com/doc/current/reference/configuration/doctrine.html#caching-drivers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions