Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3925

Unwanted characters in Doctrine cache

$
0
0

We are using Redis for as the caching driver for Doctrine in Symfony4.4. We are using the Doctrine's metadata_cache_driver, query_cache_driver, result_cache_driver which saves the cache data into Redis.

But we now face an issue with the keys created by the result_cache_driver of doctrine. The key contains [ , ] characters which is making it difficult to identify and delete the cache key, especially when deleting the cache via redis-cli.

For eg some of the cache keys are:

doctrine.result:[myapp_user_language_14922][1]doctrine.result:[myapp_userdetails_11853][1]

Is this the default behavior of the Symfony_Doctrine or any issue with configuration issue?Is there any way we can change the structure of the KEYS to doctrine.result:myapp_user_language_14922 ?

We are using

Symfony 4.4.30doctrine/cache 1.12.1doctrine/dbal  2.13.3doctrine/doctrine-bundle   1.12.13doctrine/doctrine-cache-bundle  1.4.0doctrine/orm  2.7.5

Viewing all articles
Browse latest Browse all 3925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>