summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cache/simplepie/.gitignore1
-rw-r--r--dependencyinjection/dicontainer.php11
2 files changed, 10 insertions, 2 deletions
diff --git a/cache/simplepie/.gitignore b/cache/simplepie/.gitignore
deleted file mode 100644
index 0e14fe239..000000000
--- a/cache/simplepie/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.spc
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php
index 27dae1f7b..78bf281ea 100644
--- a/dependencyinjection/dicontainer.php
+++ b/dependencyinjection/dicontainer.php
@@ -64,7 +64,16 @@ class DIContainer extends BaseContainer {
* Configuration values
*/
$this['autoPurgeCount'] = 200;
- $this['simplePieCacheDirectory'] = __DIR__ . '/../cache/simplepie/';
+ $this['simplePieCacheDirectory'] = $this->share(function($c) {
+ $dir = $c['API']->getSystemValue('datadirectory') .
+ '/news/cache/simplepie';
+
+ if(!is_dir($dir)) {
+ mkdir($dir, 0770, true);
+ }
+ return $dir;
+
+ });
$this['simplePieCacheDuration'] = 1000; // seconds