CodeIgniter Forums
Cache query in C4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Cache query in C4 (/thread-75677.html)



Cache query in C4 - samyam - 03-04-2020

How to Cache Query in CI 4


RE: Cache query in C4 - includebeer - 03-08-2020

It depends what you want to cache, there’s a lot of things that can be cached: https://codeigniter4.github.io/userguide/search.html?q=Cache&check_keywords=yes&area=default

If by query you mean database query, look at the cacheOn and cacheDir in the configuration file: https://codeigniter4.github.io/userguide/database/configuration.html?highlight=cache#explanation-of-values