From 31488e6448834d6e2d6062f1b47ce3c7a19997bc Mon Sep 17 00:00:00 2001 From: Aaron Scherer Date: Thu, 19 Oct 2017 14:05:44 -0700 Subject: [PATCH 1/2] Adding php-cache's adapter-bundle and cache-bundle --- .../1.1/config/packages/cache_adapter.yaml | 5 +++ cache/adapter-bundle/1.1/manifest.json | 13 ++++++++ cache/adapter-bundle/1.1/post-install.txt | 2 ++ .../1.0/config/packages/cache.yaml | 33 +++++++++++++++++++ cache/cache-bundle/1.0/manifest.json | 15 +++++++++ 5 files changed, 68 insertions(+) create mode 100644 cache/adapter-bundle/1.1/config/packages/cache_adapter.yaml create mode 100644 cache/adapter-bundle/1.1/manifest.json create mode 100644 cache/adapter-bundle/1.1/post-install.txt create mode 100644 cache/cache-bundle/1.0/config/packages/cache.yaml create mode 100644 cache/cache-bundle/1.0/manifest.json diff --git a/cache/adapter-bundle/1.1/config/packages/cache_adapter.yaml b/cache/adapter-bundle/1.1/config/packages/cache_adapter.yaml new file mode 100644 index 00000000..a9317d57 --- /dev/null +++ b/cache/adapter-bundle/1.1/config/packages/cache_adapter.yaml @@ -0,0 +1,5 @@ +cache_adapter: + providers: + default: + factory: "cache.factory.%env(DEFAULT_CACHE_PROVIDER)%" + options: "%env(json:DEFAULT_CACHE_PROVIDER_OPTIONS)%" diff --git a/cache/adapter-bundle/1.1/manifest.json b/cache/adapter-bundle/1.1/manifest.json new file mode 100644 index 00000000..b7db6a29 --- /dev/null +++ b/cache/adapter-bundle/1.1/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "Cache\\AdapterBundle\\CacheAdapterBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#1": "Provider types described at: See http://www.php-cache.com/en/latest/symfony/adapter-bundle/#configuration", + "DEFAULT_CACHE_PROVIDER": "array", + "DEFAULT_CACHE_PROVIDER_OPTIONS": "[]" + } +} diff --git a/cache/adapter-bundle/1.1/post-install.txt b/cache/adapter-bundle/1.1/post-install.txt new file mode 100644 index 00000000..5b8a14ab --- /dev/null +++ b/cache/adapter-bundle/1.1/post-install.txt @@ -0,0 +1,2 @@ + Next for CacheAdapterBundle + Download the adapters you want to use from http://www.php-cache.com/en/latest/#cache-pool-implementations. diff --git a/cache/cache-bundle/1.0/config/packages/cache.yaml b/cache/cache-bundle/1.0/config/packages/cache.yaml new file mode 100644 index 00000000..6049cb01 --- /dev/null +++ b/cache/cache-bundle/1.0/config/packages/cache.yaml @@ -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' + diff --git a/cache/cache-bundle/1.0/manifest.json b/cache/cache-bundle/1.0/manifest.json new file mode 100644 index 00000000..3a925da9 --- /dev/null +++ b/cache/cache-bundle/1.0/manifest.json @@ -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" + } +} From 55cc62c969dfc74337890651261ff35fd1d1fd75 Mon Sep 17 00:00:00 2001 From: Aaron Scherer Date: Fri, 20 Oct 2017 11:09:20 -0700 Subject: [PATCH 2/2] Removing uncessary caches --- .../1.0/config/packages/cache.yaml | 19 ------------------- cache/cache-bundle/1.0/manifest.json | 5 +---- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/cache/cache-bundle/1.0/config/packages/cache.yaml b/cache/cache-bundle/1.0/config/packages/cache.yaml index 6049cb01..515999b6 100644 --- a/cache/cache-bundle/1.0/config/packages/cache.yaml +++ b/cache/cache-bundle/1.0/config/packages/cache.yaml @@ -12,22 +12,3 @@ cache: 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' - diff --git a/cache/cache-bundle/1.0/manifest.json b/cache/cache-bundle/1.0/manifest.json index 3a925da9..120d0c04 100644 --- a/cache/cache-bundle/1.0/manifest.json +++ b/cache/cache-bundle/1.0/manifest.json @@ -7,9 +7,6 @@ }, "env": { "SESSION_CACHE_ENABLED": "true", - "ROUTER_CACHE_ENABLED": "true", - "ANNOTATION_CACHE_ENABLED": "true", - "SERIALIZER_CACHE_ENABLED": "true", - "VALIDATION_CACHE_ENABLED": "true" + "ROUTER_CACHE_ENABLED": "false" } }