Welcome Guest, Not a member yet? Register   Sign In
About multiples caches on same file
#1

How i can use A multiples times at same php file?
my code is that above, i need use 2 different cache system for same php but different queries, if not i'll need use another .php for the same purpose for use multiples caches.

PHP Code:
public function index()

$data['Inicial'] = "";

if (
$this->input->get('act') == "db")
{
if (
$this->load->database() == True)
{
$this->output->cache(30);

// Routine db
}
}
elseif (
$this->input->get('act') == "db2")
{
if (
$this->load->database() == True)
{
$this->output->cache(30);

// Routine db2
}
}

$this->load->view("Login"$data);

Reply
#2

Solved using:

$this->config->set_item('cache_path', 'application/cache/db2/');
$this->output->cache(60);

for every case with a different folder.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB