mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
make the cache adapter as config options and use them when calling the cache lib
This commit is contained in:
@@ -13,7 +13,7 @@ class Dxcalendar extends CI_Controller {
|
||||
|
||||
$data['page_title'] = __("DX Calendar");
|
||||
|
||||
$this->load->driver('cache', array('adapter' => 'file', 'backup' => 'file'));
|
||||
$this->load->driver('cache', ['adapter' => $this->config->item('cache_adapter'), 'backup' => $this->config->item('cache_backup')]);
|
||||
$rssUrl = 'http://www.ng3k.com/adxo.xml';
|
||||
if (!$rssRawData = $this->cache->get('RssRawDxCal')) {
|
||||
$rssRawData = file_get_contents($rssUrl, true);
|
||||
|
||||
Reference in New Issue
Block a user