diff options
-rw-r--r-- | README.rst | 29 | ||||
-rw-r--r-- | dependencyinjection/dicontainer.php | 5 | ||||
-rw-r--r-- | js/app/app.coffee | 2 |
3 files changed, 32 insertions, 4 deletions
diff --git a/README.rst b/README.rst index fd82222ff..e631fa553 100644 --- a/README.rst +++ b/README.rst @@ -81,4 +81,31 @@ Keyboard shortcuts Performance Notices ------------------- * It is currently discouraged to use it in large hosted installations since there is no way to restrict the backgroundjob to require a pause of X minutes. This `will be addressed <https://github.com/owncloud/news/issues/103>`_ in the `next ownCloud release <https://github.com/owncloud/core/pull/3051>`_. -* Use MySQL or PostgreSQL for better database performance
\ No newline at end of file +* Use MySQL or PostgreSQL for better database performance + +Configuration +~~~~~~~~~~~~~ +This will be in a seperate config file in the future but for now you can tweak the folowing things. + +:file:`dependencyinjection/dicontainer.php` + +* To cache feeds longer increase:: + + $this['simplePieCacheDuration'] = 1000; // seconds + +* To let people have more read items before there are purged increase:: + + $this['autoPurgeCount'] = 200; + +:file:`js/app/app.coffee` + +All changes in the coffee file have to be compiled by using:: + + make + +in the **js/** directory + +* To increase the interval when the app fetches new entries from database(!, not the webpage, thats set by the backgroundjob interval) change:: + + feedUpdateInterval: 1000*60*3 # miliseconds + diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php index 78bf281ea..1c3b5f378 100644 --- a/dependencyinjection/dicontainer.php +++ b/dependencyinjection/dicontainer.php @@ -63,7 +63,9 @@ class DIContainer extends BaseContainer { /** * Configuration values */ - $this['autoPurgeCount'] = 200; + $this['autoPurgeCount'] = 200; // per feed + $this['simplePieCacheDuration'] = 30*60; // seconds + $this['simplePieCacheDirectory'] = $this->share(function($c) { $dir = $c['API']->getSystemValue('datadirectory') . '/news/cache/simplepie'; @@ -74,7 +76,6 @@ class DIContainer extends BaseContainer { return $dir; }); - $this['simplePieCacheDuration'] = 1000; // seconds /** diff --git a/js/app/app.coffee b/js/app/app.coffee index 4dceaa5a9..f9fe4b526 100644 --- a/js/app/app.coffee +++ b/js/app/app.coffee @@ -26,7 +26,7 @@ angular.module('News', ['OC', 'ui']).config ($provide) -> $provide.value 'Config', config = markReadTimeout: 500 scrollTimeout: 500 - feedUpdateInterval: 1000*60*3 + feedUpdateInterval: 1000*60*3 # miliseconds itemBatchSize: 20 # the autoPageFactor defines how many heights of the box must be left # before it starts autopaging e.g. if it was 2, then it will start |