[CORE] Better queues defaults

This commit is contained in:
Diogo Cordeiro
2019-12-11 02:20:54 +00:00
parent dc211c9c44
commit 60446dfc20
12 changed files with 68 additions and 61 deletions

View File

@@ -4,9 +4,9 @@ that uses Redis as it's backing storage.
Installation
============
This plugin is replaces other queue manager plugins, such as UnQueue,
which enabled by default and which should, but is not required to be
disabled.
This plugin replaces other queue manager plugins, such as UnQueue and DBQueue.
You don't have to disable them but it is recommended to only use a QueueManager
at a time.
addPlugin('RedisQueue', ['server' => 'your-redis-instance-and-port']);
@@ -15,4 +15,4 @@ Example
In config.php
addPlugin('RedisQueue', ['server' => 'tcp://localhost:6379']);
addPlugin('RedisQueue', ['server' => 'tcp://localhost:6379']);

View File

@@ -27,7 +27,7 @@ defined('GNUSOCIAL') || die();
class RedisQueuePlugin extends Plugin
{
const PLUGIN_VERSION = '0.0.1';
const PLUGIN_VERSION = '0.1.0';
// settings which can be set in config.php with addPlugin('RedisQueue', ['param'=>'value', ...]);
public $server = null;
@@ -40,12 +40,15 @@ class RedisQueuePlugin extends Plugin
public function onPluginVersion(array &$versions): bool
{
$versions[] = array('name' => 'RedisQueue',
'version' => self::PLUGIN_VERSION,
'author' => 'Miguel Dantas',
'description' =>
// TRANS: Plugin description.
_m('Plugin implementing Redis as a backend for GNU social queues'));
$versions[] = [
'name' => 'RedisQueue',
'version' => self::PLUGIN_VERSION,
'author' => 'Miguel Dantas',
'homepage' => GNUSOCIAL_ENGINE_URL,
'description' =>
// TRANS: Plugin description.
_m('Plugin implementing Redis as a backend for GNU social queues')
];
return true;
}
};