![]() |
URL specific caching - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: URL specific caching (/showthread.php?tid=12797) |
URL specific caching - El Forum - 10-31-2008 [eluser]Nial[/eluser] I would love to use CI's caching facilities, but have run into a problem. I have two version of my site (both are area specific). A user can reach them by visiting either: domain.com OR uk.domain.com Both point to the same directory, and use the same CI installation. I just do a check of the URL to see whether the uk. 'subdomain' is present. Those familiar with CI's caching will probably have already guessed the nature of my problem. If domain.com pages are cached, visitors to uk.domain.com will see the cached pages, rather than the area specific data. Ideally, I'd like to have cached versions of both. Is there an easy way to do this? I was considering subclassing the cache functions and have them take into consider the subdomain when save/looking for cached files. |