Symfony 学说 Redis 缓存未按预期工作

问题描述 投票:0回答:1

我在 symfony 中遇到 Redis 缓存问题。出于某些目的,我将 Doctrine 缓存设置为 Redis。这是设置:

doctrine:
orm:
    auto_generate_proxy_classes: false
    metadata_cache_driver:
        type: pool
        pool: doctrine.system_cache_pool
    query_cache_driver:
        type: pool
        pool: doctrine.system_cache_pool
    result_cache_driver:
        type: pool
        pool: doctrine.result_cache_pool

framework:
    cache:
        pools:
            doctrine.result_cache_pool:
                adapter: cache.app
            doctrine.system_cache_pool:
                adapter: cache.system

和缓存设置:

app: cache.adapter.redis
system: cache.adapter.redis

现在我只有一个问题,当我做

bin/console doc:mi:diff
bin/console make:migration
时,它没有显示任何差异,直到我
redis-cli FLUSHALL

有什么想法吗?

symfony caching redis doctrine-orm doctrine
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.