@edmond_brakus
To use multiple cache folders in CodeIgniter, you can set up multiple cache directories in your configuration file. Here's how you can do it:
1
|
$config['cache_path'] = 'application/cache'; |
1 2 3 4 |
$config['cache_paths'] = array( 'default' => 'application/cache', 'second_cache' => 'application/cache2', ); |
1
|
$this->load->driver('cache', array('adapter' => 'file', 'backup' => 'file', 'key' => 'second_cache')); |
By following these steps, you can use multiple cache folders in your CodeIgniter application.