Skip to content

Commit

Permalink
Merge pull request #1 from mmichelli/patch-1
Browse files Browse the repository at this point in the history
The cache was used before you set the cache directory.
  • Loading branch information
ntd committed Oct 3, 2011
2 parents b7d7449 + b425862 commit 79260c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/model/RssContentSource.php
Expand Up @@ -127,10 +127,11 @@ public function stageChildren() {
*/
public function getClient() {
if (!$this->client) {
$this->client = new SimplePie($this->Url);
$this->client->enable_cache(true);
$this->client->set_cache_duration($this->getCacheLifetime());
$this->client = new SimplePie($this->Url, TEMP_FOLDER);
$this->client->set_cache_location(TEMP_FOLDER);
$this->client->set_cache_duration($this->getCacheLifetime());
$this->client->set_feed_url($this->Url);
$this->client->enable_cache(true);
}

return $this->client;
Expand Down

0 comments on commit 79260c9

Please sign in to comment.