groupoffice
groupoffice copied to clipboard
disabling cache
As far as i remember:
$config['core'] = [
'general' => [
'cache' => 'go\\core\\cache\\None'
]
];
This should disable the cache, right?
Also, when i look into the install/upgrade.php, i can see:
go()->setCache(new \go\core\cache\None());
When i call the install/upgrade.php, cache gets cleared. But disabling does not seem to work?
Cache configuration is directly under $config['cache'] option.
The thing is, i want to disable cache, by default.
Why?
Development :-)
We always manually clear the cache with /install/upgrade.php but you can set this:
$config['cache'] = \go\core\cache\None::class;
Yeah, i know how to do this the "correct" way, but in this case it would be a little bit annoying ;-) (interface design)
I tried to add this to config.php, but nothing changed.
It should stop things from being cached. I just verfified that the config option works.