• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.