From abc15182ce9faaf1f1e7608c37a150617ae97f58 Mon Sep 17 00:00:00 2001 From: Grischa Brockhaus Date: Wed, 25 Jan 2012 14:42:14 +0100 Subject: [PATCH] commentSpice: RSS Caching fetched the wrong URL. --- .../serendipity_event_commentspice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serendipity_event_commentspice/serendipity_event_commentspice.php b/serendipity_event_commentspice/serendipity_event_commentspice.php index a8c04583..8447089e 100644 --- a/serendipity_event_commentspice/serendipity_event_commentspice.php +++ b/serendipity_event_commentspice/serendipity_event_commentspice.php @@ -341,11 +341,11 @@ class serendipity_event_commentspice extends serendipity_event if (empty($comment_url)) return; // First try to read from cache - $result = $this->cacheReadRss($url); + $result = $this->cacheReadRss($comment_url); if (empty($result)) { $result = $this->readRssRemote($comment_url); $this->log("Fetched array: " . print_r($result, true)); - if (!empty($result) && $result['articles']) $this->cacheWriteRss($url, $result); + if (!empty($result) && $result['articles']) $this->cacheWriteRss($comment_url, $result); } if (empty($result) || !$result['articles'] || count($result['articles'])==0) return;