@@ -37,7 +37,7 @@ these at the :doc:`component documentation </components/cache>`.
37
37
Configuring Cache with FrameworkBundle
38
38
--------------------------------------
39
39
40
- When configuring the the cache component there are a few concepts you should know
40
+ When configuring the cache component there are a few concepts you should know
41
41
of:
42
42
43
43
**Pool **
@@ -215,9 +215,9 @@ You can also create more customized pools. All you need is an adapter:
215
215
216
216
<framework : config >
217
217
<framework : cache default_memcached_provider =" memcached://localhost" >
218
- <framework : pool name =" my_cache_pool" adapter =" cache.adapter.array" />
219
- <framework : pool name =" cache.acme" adapter =" cache.adapter.memcached" />
220
- <framework : pool name =" cache.foobar" adapter =" cache.adapter.memcached" provider =" memcached://user:password@example.com" />
218
+ <framework : pool name =" my_cache_pool" adapter =" cache.adapter.array" />
219
+ <framework : pool name =" cache.acme" adapter =" cache.adapter.memcached" />
220
+ <framework : pool name =" cache.foobar" adapter =" cache.adapter.memcached" provider =" memcached://user:password@example.com" />
221
221
</framework : cache >
222
222
</framework : config >
223
223
</container >
@@ -282,9 +282,9 @@ For advanced configurations it could sometimes be useful to use a pool as an ada
282
282
283
283
<framework : config >
284
284
<framework : cache >
285
- <framework : pool name =" my_cache_pool" adapter =" cache.adapter.memcached" provider =" memcached://user:password@example.com" />
286
- <framework : pool name =" cache.short_cache" adapter =" my_cache_pool" default_lifetime =" 604800" />
287
- <framework : pool name =" cache.long_cache" adapter =" my_cache_pool" default_lifetime =" 604800" />
285
+ <framework : pool name =" my_cache_pool" adapter =" cache.adapter.memcached" provider =" memcached://user:password@example.com" />
286
+ <framework : pool name =" cache.short_cache" adapter =" my_cache_pool" default_lifetime =" 604800" />
287
+ <framework : pool name =" cache.long_cache" adapter =" my_cache_pool" default_lifetime =" 604800" />
288
288
</framework : cache >
289
289
</framework : config >
290
290
</container >
@@ -355,17 +355,17 @@ case the value needs to be recalculated.
355
355
356
356
<framework : config >
357
357
<framework : cache default_memcached_provider =" memcached://localhost" >
358
- <framework : pool name =" my_cache_pool" adapter =" app.my_cache_chain_adapter" />
359
- <framework : pool name =" cache.my_redis" adapter =" cache.adapter.redis" provider =" redis://user:password@example.com" />
358
+ <framework : pool name =" my_cache_pool" adapter =" app.my_cache_chain_adapter" />
359
+ <framework : pool name =" cache.my_redis" adapter =" cache.adapter.redis" provider =" redis://user:password@example.com" />
360
360
</framework : cache >
361
361
</framework : config >
362
362
363
363
<services >
364
364
<service id =" app.my_cache_chain_adapter" class =" Symfony\Component\Cache\Adapter\ChainAdapter" >
365
365
<argument type =" collection" >
366
- <argument type =" service" value =" cache.adapter.array" />
367
- <argument type =" service" value =" cache.my_redis" />
368
- <argument type =" service" value =" cache.adapter.file" />
366
+ <argument type =" service" value =" cache.adapter.array" />
367
+ <argument type =" service" value =" cache.my_redis" />
368
+ <argument type =" service" value =" cache.adapter.file" />
369
369
</argument >
370
370
<argument >31536000</argument >
371
371
</service >
@@ -407,9 +407,9 @@ Clearing the Cache
407
407
------------------
408
408
409
409
To clear the cache you can use the ``bin/console cache:pool:clear [pool] `` command.
410
- That will remove all the entries from your storage and you wil have to recalcuate
410
+ That will remove all the entries from your storage and you wil have to recalculate
411
411
all values. You can also group your pools into "cache clearers". There are 3 cache
412
- clearer by default:
412
+ clearers by default:
413
413
414
414
* ``cache.global_clearer ``
415
415
* ``cache.system_clearer ``
0 commit comments