CodeIgniter Forums
Config Property for Turning on Config Cache - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Config Property for Turning on Config Cache (/showthread.php?tid=88710)



Config Property for Turning on Config Cache - donpwinston - 10-23-2023

Any reason why there is not a config property we can set in .env to turn on the new Config cache feature? I don't like modifying the index.php file.


RE: Config Property for Turning on Config Cache - ozornick - 10-23-2023

this is a test feature. not for everyone. you can add the code for Config, env yourself or send PR on github


RE: Config Property for Turning on Config Cache - kenjis - 10-23-2023

1. because the prerequisites are complex and the feature is not suitable for everyone.
2. to reduce the overhead to zero when Config Caching is not used.


RE: Config Property for Turning on Config Cache - kenjis - 02-19-2024

I sent a PR to add the property:
https://github.com/codeigniter4/CodeIgniter4/pull/8558