Symfony-docs: Should we document "cache.adapter.system" ?

Created on 6 Dec 2019  路  4Comments  路  Source: symfony/symfony-docs

In the main Cache article, you can see this example at the beginning:

# config/packages/cache.yaml
framework:
    cache:
        app: cache.adapter.filesystem
        system: cache.adapter.system

However, the cache.adapter.system is not documented anywhere (we document all the other adapters). So, is this something to be documented for end users or not? Is this something "special" or "internal" and should not be documented? Ping @nicolas-grekas Thanks!

Cache

Most helpful comment

We could tell in the doc that while it is possible to reconfigure the system cache, we don't recommend doing so, because the default is really the best possible configuration.

This would be a valuable addition.

All 4 comments

the default are good for anyone so not something we need to tell ppl about imho

Hi @nicolas-grekas

It is not clear from the docs: whether it possible to use other adapters for system cache or not. I've tried to use redis for system cache but I found that files inside var/cache folder are still created. And I cannot find anything in the documentation about that.

Cache warmers may generate files yes, but they won't be used if you configure the system cache for something else IIRC.

We could tell in the doc that while it is possible to reconfigure the system cache, we don't recommend doing so, because the default is really the best possible configuration.

We could tell in the doc that while it is possible to reconfigure the system cache, we don't recommend doing so, because the default is really the best possible configuration.

This would be a valuable addition.

Was this page helpful?
0 / 5 - 0 ratings