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


Messages In This Thread
About multiples caches on same file - by douglaspr - 12-02-2020, 05:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB