1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-04-09 10:15:44 +02:00

added configuration info

This commit is contained in:
Bernhard Posselt 2013-04-23 12:25:27 +02:00
parent 0a8945439e
commit 61fb7b93a0
3 changed files with 32 additions and 4 deletions
README.rst
dependencyinjection
js/app

View File

@ -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
* 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

View File

@ -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
/**

View File

@ -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