From 4399f8b8a5e0b4551828f559456be8c8f833c531 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 27 Jan 2017 11:38:49 -0800 Subject: [PATCH] Feed debug fix. --- e107_admin/boot.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/e107_admin/boot.php b/e107_admin/boot.php index 0724311f1..84e126b2e 100644 --- a/e107_admin/boot.php +++ b/e107_admin/boot.php @@ -83,21 +83,22 @@ if(ADMIN && e_AJAX_REQUEST && varset($_GET['mode']) == 'addons' ) $tag = 'infopanel_'.$type; $cache = e107::getCache(); - $cache->setMD5('_'); - if($text = $cache->retrieve($tag,180,true)) // check every 3 hours. + $feed = 'https://e107.org/feed/?limit=3&type='.$type; + + if($text = $cache->retrieve($tag,180,true, true)) // check every 3 hours. { echo $text; if(e_DEBUG === true) { - echo "Cached"; + echo "Cached"; } exit; } - if($data = e107::getXml()->getRemoteFile('https://e107.org/feed/?limit=3&type='.$type,3)) + if($data = e107::getXml()->getRemoteFile($feed,3)) { $rows = e107::getXml()->parseXml($data, 'advanced'); // print_a($rows); @@ -128,7 +129,7 @@ if(ADMIN && e_AJAX_REQUEST && varset($_GET['mode']) == 'addons' ) echo $text; - $cache->set($tag, $text, true); + $cache->set($tag, $text, true, null, true); } exit;