groupoffice icon indicating copy to clipboard operation
groupoffice copied to clipboard

disabling cache

Open lonesomewalker opened this issue 1 year ago • 7 comments

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?

lonesomewalker avatar May 05 '23 22:05 lonesomewalker

Cache configuration is directly under $config['cache'] option. image

michalcharvat avatar May 05 '23 23:05 michalcharvat

The thing is, i want to disable cache, by default.

lonesomewalker avatar May 06 '23 08:05 lonesomewalker

Why?

mschering avatar May 22 '23 13:05 mschering

Development :-)

lonesomewalker avatar May 24 '23 06:05 lonesomewalker

We always manually clear the cache with /install/upgrade.php but you can set this:

$config['cache'] = \go\core\cache\None::class;

mschering avatar May 25 '23 07:05 mschering

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.

lonesomewalker avatar May 25 '23 08:05 lonesomewalker

It should stop things from being cached. I just verfified that the config option works.

mschering avatar May 30 '23 07:05 mschering