Welcome Guest, Not a member yet? Register   Sign In
A question about Cache.
#1

[eluser]Блум[/eluser]
Hello,
I've red in the user guide that if I want to enable cache I have to put
Code:
$this->output->cache(n);
in the controller. This is okay, it works, but I meet some problems when trying to disable it.. I'll tell you what I mean.

I want to enable cache for unregistered users only, and I have something like
Code:
if ( ! $this->check_if_user_is('logged_user')) $this->output->cache(5);
In the controller, and it is working for ALL users, including the registered. The cached files by default are saved in system/cache/, and seems like when it finds some cache for the page that is not expired, it uses it, no matter if it is turned on.
Is this behaviour normal?

Thanks


Messages In This Thread
A question about Cache. - by El Forum - 04-16-2010, 08:19 AM
A question about Cache. - by El Forum - 04-16-2010, 08:37 AM
A question about Cache. - by El Forum - 04-16-2010, 09:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB