Welcome Guest, Not a member yet? Register   Sign In
Delete one cache file with cache driver
#4

And there is your answer.

PHP Code:
$this->output->cache($n); 
is for web page caching

See the docs
https://codeigniter.com/user_guide/general/caching.html

You are referring to a cache driver which is not used when calling
$this->output->cache($n);

So calling
PHP Code:
$this->cache->delete 
won't have any effect on a cached web page

A cache driver is used for caching partial views, or other types of data.
But when using web page caching, all other view caching is obsolete as CodeIgniter will exit execution when a valid cache output is found.
Reply


Messages In This Thread
RE: Delete one cache file with cache driver - by Martin7483 - 07-07-2017, 05:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB