From 7b0dad46af9d0fd2d75cd7acaad88229afcd4b45 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 30 Jul 2024 18:07:00 +0200 Subject: [PATCH] Introduce APP_CACHE_POOLS_DIR to ease splitting app from system pools --- symfony/framework-bundle/5.4/config/packages/cache.yaml | 3 ++- symfony/framework-bundle/6.2/config/packages/cache.yaml | 3 ++- symfony/framework-bundle/6.4/config/packages/cache.yaml | 3 ++- symfony/framework-bundle/7.0/config/packages/cache.yaml | 3 ++- symfony/framework-bundle/7.2/config/packages/cache.yaml | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/symfony/framework-bundle/5.4/config/packages/cache.yaml b/symfony/framework-bundle/5.4/config/packages/cache.yaml index 6899b7200..f8fb91237 100644 --- a/symfony/framework-bundle/5.4/config/packages/cache.yaml +++ b/symfony/framework-bundle/5.4/config/packages/cache.yaml @@ -4,7 +4,8 @@ framework: #prefix_seed: your_vendor_name/app_name # The "app" cache stores to the filesystem by default. - # The data in this cache should persist between deploys. + directory: '%env(default:kernel.cache_dir:APP_CACHE_POOLS_DIR)%/pools/app' + # Other options include: # Redis diff --git a/symfony/framework-bundle/6.2/config/packages/cache.yaml b/symfony/framework-bundle/6.2/config/packages/cache.yaml index 6899b7200..f8fb91237 100644 --- a/symfony/framework-bundle/6.2/config/packages/cache.yaml +++ b/symfony/framework-bundle/6.2/config/packages/cache.yaml @@ -4,7 +4,8 @@ framework: #prefix_seed: your_vendor_name/app_name # The "app" cache stores to the filesystem by default. - # The data in this cache should persist between deploys. + directory: '%env(default:kernel.cache_dir:APP_CACHE_POOLS_DIR)%/pools/app' + # Other options include: # Redis diff --git a/symfony/framework-bundle/6.4/config/packages/cache.yaml b/symfony/framework-bundle/6.4/config/packages/cache.yaml index 6899b7200..f8fb91237 100644 --- a/symfony/framework-bundle/6.4/config/packages/cache.yaml +++ b/symfony/framework-bundle/6.4/config/packages/cache.yaml @@ -4,7 +4,8 @@ framework: #prefix_seed: your_vendor_name/app_name # The "app" cache stores to the filesystem by default. - # The data in this cache should persist between deploys. + directory: '%env(default:kernel.cache_dir:APP_CACHE_POOLS_DIR)%/pools/app' + # Other options include: # Redis diff --git a/symfony/framework-bundle/7.0/config/packages/cache.yaml b/symfony/framework-bundle/7.0/config/packages/cache.yaml index 6899b7200..f8fb91237 100644 --- a/symfony/framework-bundle/7.0/config/packages/cache.yaml +++ b/symfony/framework-bundle/7.0/config/packages/cache.yaml @@ -4,7 +4,8 @@ framework: #prefix_seed: your_vendor_name/app_name # The "app" cache stores to the filesystem by default. - # The data in this cache should persist between deploys. + directory: '%env(default:kernel.cache_dir:APP_CACHE_POOLS_DIR)%/pools/app' + # Other options include: # Redis diff --git a/symfony/framework-bundle/7.2/config/packages/cache.yaml b/symfony/framework-bundle/7.2/config/packages/cache.yaml index 6899b7200..f8fb91237 100644 --- a/symfony/framework-bundle/7.2/config/packages/cache.yaml +++ b/symfony/framework-bundle/7.2/config/packages/cache.yaml @@ -4,7 +4,8 @@ framework: #prefix_seed: your_vendor_name/app_name # The "app" cache stores to the filesystem by default. - # The data in this cache should persist between deploys. + directory: '%env(default:kernel.cache_dir:APP_CACHE_POOLS_DIR)%/pools/app' + # Other options include: # Redis