[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