mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 23:26:40 +03:00
Add recipe for phpfastcache/phpfastcache-bundle
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
phpfastcache:
|
||||
twig_driver: "filecache" # This option must be a valid declared driver, in our example: "filecache"
|
||||
twig_block_debug: false # This option will wrap CACHE/ENDCACHE blocks with block debug as HTML comment
|
||||
drivers:
|
||||
filecache:
|
||||
type: Files
|
||||
parameters:
|
||||
path: "%env(PHPFASTCACHE_FILECACHE_PATH)%"
|
||||
|
||||
# Define your drivers here. The example below connects to database 0 of the default Redis server.
|
||||
#
|
||||
# See https://github.com/snc/SncRedisBundle/blob/master/Resources/doc/index.md for instructions on
|
||||
# how to configure the bundle.
|
||||
#
|
||||
# memorycache:
|
||||
# type: redis # or "predis"
|
||||
# path: "%env(PHPFASTCACHE_REDIS_URL)%"
|
||||
# database: 0
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Phpfastcache\\Bundle\\PhpfastcacheBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Avoid special chars in the file cache path such as: @, %, :, +, ~, etc.",
|
||||
"PHPFASTCACHE_FILECACHE_PATH": "%kernel.cache_dir%/phpfastcache/"
|
||||
},
|
||||
"aliases": ["phpfastcache"]
|
||||
}
|
||||
Reference in New Issue
Block a user