mirror of
https://github.com/glowingblue/flarum-ext-redis-setup.git
synced 2026-03-22 23:17:48 +01:00
Compare commits
2 Commits
1.3.1
...
sh/redis-s
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
078fd9a746 | ||
|
|
4f261dbee4 |
6
.github/workflows/frontend.yml
vendored
6
.github/workflows/frontend.yml
vendored
@@ -13,7 +13,11 @@ jobs:
|
||||
frontend_directory: ./js
|
||||
backend_directory: .
|
||||
js_package_manager: yarn
|
||||
main_git_branch: master
|
||||
main_git_branch: 1.x
|
||||
|
||||
git_actor_name: ${{ vars.GIT_ACTOR_NAME }}
|
||||
git_actor_email: ${{ vars.GIT_ACTOR_EMAIL }}
|
||||
|
||||
secrets:
|
||||
bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
|
||||
git_actor_token: ${{ secrets.GIT_ACTOR_TOKEN }}
|
||||
|
||||
@@ -24,6 +24,7 @@ class EnableRedis implements ExtenderInterface
|
||||
const CACHE_KEY = 'connections.cache';
|
||||
const QUEUE_KEY = 'connections.queue';
|
||||
const SESSION_KEY = 'connections.session';
|
||||
const SETTINGS_KEY = 'connections.settings';
|
||||
|
||||
public function extend(Container $container, Extension $extension = null)
|
||||
{
|
||||
@@ -45,6 +46,7 @@ class EnableRedis implements ExtenderInterface
|
||||
|
||||
if (!(bool) $settings->get('glowingblue-redis.enableCache', false)) {
|
||||
$disabled[] = 'cache';
|
||||
$disabled[] = 'settings';
|
||||
}
|
||||
|
||||
if (!(bool) $settings->get('glowingblue-redis.enableQueue', false)) {
|
||||
@@ -79,9 +81,14 @@ class EnableRedis implements ExtenderInterface
|
||||
'database' => static::getSessionDatabase(),
|
||||
];
|
||||
|
||||
$settings = $base + [
|
||||
'database' => static::getSessionDatabase(),
|
||||
];
|
||||
|
||||
$config = Arr::add($config, self::CACHE_KEY, $cache);
|
||||
$config = Arr::add($config, self::QUEUE_KEY, $queue);
|
||||
$config = Arr::add($config, self::SESSION_KEY, $session);
|
||||
$config = Arr::add($config, self::SETTINGS_KEY, $settings);
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user