Save cache in config
Permalink
Hi All
In 5.6 I can use the below code:
But in 5.8, how do I do that?
Rony
In 5.6 I can use the below code:
Config::save('ENABLE_CACHE', 0);
But in 5.8, how do I do that?
Rony
Any thoughts on this. I'm really in a need to fix this.
I think if you put this
in /root/application/config/concrete.php
it should to the same thing. And yes. Change the values to what you actually want.
return [ 'cache' => [ 'blocks' => false, 'assets' => false, 'theme_css' => false, 'overrides' => false, 'pages' => '0', 'full_page_lifetime' => 'default', 'full_page_lifetime_value' => null, 'clear' => [ 'thumbnails' => false, ], ];
in /root/application/config/concrete.php
it should to the same thing. And yes. Change the values to what you actually want.