Welcome Guest, Not a member yet? Register   Sign In
Creating cache files under sub-folders in CodeIgniter (4.0.4)

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

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.

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

Theme © iAndrew 2016 - Forum software by © MyBB