Adding php-cache's adapter-bundle and cache-bundle

This commit is contained in:
Aaron Scherer
2017-10-19 14:05:44 -07:00
parent fc02fcf66d
commit 31488e6448
5 changed files with 68 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
cache:
session:
enabled: "%env(bool:SESSION_CACHE_ENABLED)%"
service_id: "cache.provider.default"
use_tagging: true
ttl: 7200
router:
enabled: "%env(bool:ROUTER_CACHE_ENABLED)%"
service_id: "cache.provider.default"
ttl: 86400
logging:
enabled: "%env(bool:APP_DEBUG)%"
logger: "logger"
level: "info"
annotation:
enabled: "%env(bool:ANNOTATION_CACHE_ENABLED)%"
service_id: "cache.provider.default"
use_tagging: true
serializer:
enabled: "%env(bool:SERIALIZER_CACHE_ENABLED)%"
service_id: "cache.provider.default"
use_tagging: true
validation:
enabled: "%env(bool:VALIDATION_CACHE_ENABLED)%"
service_id: "cache.provider.default"
use_tagging: true
framework:
annotations:
cache: 'cache.service.annotation'
validation:
cache: 'cache.service.validation'
+15
View File
@@ -0,0 +1,15 @@
{
"bundles": {
"Cache\\CacheBundle\\CacheBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"SESSION_CACHE_ENABLED": "true",
"ROUTER_CACHE_ENABLED": "true",
"ANNOTATION_CACHE_ENABLED": "true",
"SERIALIZER_CACHE_ENABLED": "true",
"VALIDATION_CACHE_ENABLED": "true"
}
}