CodeIgniter Forums
Creating cache files under sub-folders in CodeIgniter (4.0.4) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Creating cache files under sub-folders in CodeIgniter (4.0.4) (/showthread.php?tid=77114)



Creating cache files under sub-folders in CodeIgniter (4.0.4) - Demonicious - 07-20-2020

I've been trying out CodeIgniter 4, having a blast really. Such an organized, easy to use and straightforward framework with a small footprint.

I wanted to know If it's possible to cache data under a subfolder (under the writable/cache) directory.
For example User related information gets cached in 'cache/user/' and Blog related data gets cached in 'cache/blog/'

I know this is possible with views, but I tried doing it with cache and it didn't seem to work. Maybe I was doing it wrong.
If this is possible, I'd appreciate it if an example was provided Smile


RE: Creating cache files under sub-folders in CodeIgniter (4.0.4) - jreklund - 07-21-2020

It's not possible to my knowledge. It's saved with a unique encoded key, with random numbers and letters. So it dosen't know where to look.


RE: Creating cache files under sub-folders in CodeIgniter (4.0.4) - paulbalandan - 07-21-2020

If I am not mistaken that is included in the planned Development work. Something aimed at 4.1