CodeIgniter Forums
How to specify a custom prefix for cache - 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: How to specify a custom prefix for cache (/showthread.php?tid=65679)



How to specify a custom prefix for cache - skylab-spb - 07-11-2016

Hello,

How to specify a custom prefix for cache

Code:
$this->output->cache(5);



RE: How to specify a custom prefix for cache - mwhitney - 07-12-2016

The output cache has a directory path in which the output files are stored and the file names are based on a hash of the full URI.

What are you trying to do?


RE: How to specify a custom prefix for cache - skylab-spb - 07-12-2016

I need to add custom data to prefix from session


RE: How to specify a custom prefix for cache - skylab-spb - 07-12-2016

I did change the language on the site through the session. Accordingly, the URL of the page I have the same and copied only one version. To do this, I need to add the language identifier of the session to the prefix


RE: How to specify a custom prefix for cache - mwhitney - 07-15-2016

What you're trying to do isn't really compatible with the output cache (unless you change your URL with the language). You should probably use the caching library, instead.