12-02-2020, 05:17 PM
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.
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);
}