Skip to content

Commit

Permalink
bug #19650 [FrameworkBundle] Fix default lifetime of cache pools (nic…
Browse files Browse the repository at this point in the history
…olas-grekas)

This PR was merged into the 3.1 branch.

Discussion
----------

[FrameworkBundle] Fix default lifetime of cache pools

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

ec603d3 [FrameworkBundle] Fix default lifetime of cache pools
  • Loading branch information
fabpot committed Aug 17, 2016
2 parents d7f8ca7 + ec603d3 commit a7bd135
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Symfony/Bundle/FrameworkBundle/Resources/config/cache.xml
Expand Up @@ -27,7 +27,7 @@
<tag name="cache.pool" clearer="cache.default_clearer" />
<tag name="monolog.logger" channel="cache" />
<argument /> <!-- namespace -->
<argument /> <!-- default lifetime -->
<argument>0</argument> <!-- default lifetime -->
<argument /> <!-- version -->
<argument>%kernel.cache_dir%/pools</argument>
<argument type="service" id="logger" on-invalid="ignore" />
Expand All @@ -37,7 +37,7 @@
<tag name="cache.pool" clearer="cache.default_clearer" />
<tag name="monolog.logger" channel="cache" />
<argument /> <!-- namespace -->
<argument /> <!-- default lifetime -->
<argument>0</argument> <!-- default lifetime -->
<argument /> <!-- version -->
<call method="setLogger">
<argument type="service" id="logger" on-invalid="ignore" />
Expand All @@ -49,7 +49,7 @@
<tag name="monolog.logger" channel="cache" />
<argument /> <!-- Doctrine provider service -->
<argument /> <!-- namespace -->
<argument /> <!-- default lifetime -->
<argument>0</argument> <!-- default lifetime -->
<call method="setLogger">
<argument type="service" id="logger" on-invalid="ignore" />
</call>
Expand All @@ -59,7 +59,7 @@
<tag name="cache.pool" clearer="cache.default_clearer" />
<tag name="monolog.logger" channel="cache" />
<argument /> <!-- namespace -->
<argument /> <!-- default lifetime -->
<argument>0</argument> <!-- default lifetime -->
<argument>%kernel.cache_dir%/pools</argument>
<call method="setLogger">
<argument type="service" id="logger" on-invalid="ignore" />
Expand All @@ -70,15 +70,15 @@
<tag name="cache.pool" provider="cache.default_psr6_provider" clearer="cache.default_clearer" />
<argument /> <!-- PSR-6 provider service -->
<argument /> <!-- namespace -->
<argument /> <!-- default lifetime -->
<argument>0</argument> <!-- default lifetime -->
</service>

<service id="cache.adapter.redis" class="Symfony\Component\Cache\Adapter\RedisAdapter" abstract="true">
<tag name="cache.pool" provider="cache.default_redis_provider" clearer="cache.default_clearer" />
<tag name="monolog.logger" channel="cache" />
<argument /> <!-- Redis connection service -->
<argument /> <!-- namespace -->
<argument /> <!-- default lifetime -->
<argument>0</argument> <!-- default lifetime -->
<call method="setLogger">
<argument type="service" id="logger" on-invalid="ignore" />
</call>
Expand Down

0 comments on commit a7bd135

Please sign in to comment.