make the cache adapter as config options and use them when calling the cache lib

This commit is contained in:
HB9HIL
2026-02-01 19:33:51 +01:00
parent 549307e5f1
commit 3a2bce8646
9 changed files with 33 additions and 11 deletions

View File

@@ -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);