CodeIgniter Forums
Cache the page with output class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Cache the page with output class (/showthread.php?tid=81751)



Cache the page with output class - omid_student - 04-22-2022

Hi,
I want to cache output for each user IP, not URI
Example the $this->output->cache(10); cache the page for domain.com/search
But I want to cache with the user's IP
Actually, I try to cache pages for each user not only for the domain
I changed URI code to IP in Output.php (md5($_SERVER['REMOTE_ADD']))
Is that the right way to cache a page for each user?