CodeIgniter Forums
Customizing CodeIgniter cache folder location? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10)
+--- Thread: Customizing CodeIgniter cache folder location? (/showthread.php?tid=88743)



Customizing CodeIgniter cache folder location? - LarayaTaryar - 10-29-2023

I have identified a file, "Cache.php," within the app/config directory that enables the configuration of the cache folder for the CodeIgniter 4 framework. Given the substantial number of pages, the Linux directory is already inundated with numerous files.

I aim to designate the $storePath variable to a specific folder. Is there a method to achieve this?

For example, when I employ the cache for controller "A" ($this->cachePage(1000)), I wish to concurrently specify the folder for this particular controller.

I would greatly appreciate any assistance with this matter. Thank you in advance.