зеркало из https://github.com/nextcloud/news.git
use data directory as cache
This commit is contained in:
Родитель
1536f9e15d
Коммит
8657356ed3
|
@ -1 +0,0 @@
|
|||
*.spc
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче