mirror of
https://github.com/glowingblue/flarum-ext-redis-setup.git
synced 2026-03-22 06:57:45 +01:00
fof/redis >=1.1 introduces a `settings` service that replaces SettingsRepositoryInterface with a Redis-backed caching layer. Enabling it here creates a circular dependency: this extension reads settings to decide which Redis services to enable, but with the settings cache active those reads require Redis to already be wired. Always disable the `settings` service when delegating to fof/redis. Also fixes a cast-precedence bug in the database env var helpers where `(int) getenv(...) ? getenv(...) : N` applied the cast to the ternary condition rather than the result, causing REDIS_DATABASE_*=0 to return the default instead of 0. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
75 lines
1.7 KiB
JSON
75 lines
1.7 KiB
JSON
{
|
|
"name": "glowingblue/redis-setup",
|
|
"description": "Makes it easy to enable/disable Redis features: Cache, Queue & Sessions",
|
|
"keywords": [
|
|
"flarum",
|
|
"redis",
|
|
"cache",
|
|
"queue",
|
|
"session"
|
|
],
|
|
"type": "flarum-extension",
|
|
"license": "MIT",
|
|
"support": {
|
|
"issues": "https://github.com/glowingblue/flarum-ext-redis-setup/issues",
|
|
"source": "https://github.com/glowingblue/flarum-ext-redis-setup",
|
|
"forum": "https://community.glowingblue.com/t/flarum-corner",
|
|
"email": "dev@glowingblue.com"
|
|
},
|
|
"homepage": "https://glowingblue.com",
|
|
"require": {
|
|
"php": "^8.1",
|
|
"flarum/core": "^1.8.5",
|
|
"fof/redis": "^1.1.4"
|
|
},
|
|
"authors": [
|
|
{
|
|
"name": "IanM",
|
|
"homepage": "https://discuss.flarum.org/u/ianm",
|
|
"role": "Developer"
|
|
},
|
|
{
|
|
"name": "Glowing Blue AG",
|
|
"homepage": "https://glowingblue.com",
|
|
"role": "Developer"
|
|
},
|
|
{
|
|
"name": "Rafael Horvat",
|
|
"role": "Developer"
|
|
}
|
|
],
|
|
"autoload": {
|
|
"psr-4": {
|
|
"GlowingBlue\\RedisSetup\\": "src/"
|
|
}
|
|
},
|
|
"extra": {
|
|
"flarum-extension": {
|
|
"title": "GB Redis Setup",
|
|
"category": "feature",
|
|
"icon": {
|
|
"name": "fas fa-tasks",
|
|
"backgroundColor": "#00a7e3",
|
|
"color": "#fff"
|
|
},
|
|
"optional-dependencies": [
|
|
"fof/horizon"
|
|
]
|
|
},
|
|
"extiverse": {
|
|
"discuss": "https://discuss.flarum.org/d/27455"
|
|
}
|
|
},
|
|
"require-dev": {
|
|
"flarum/phpstan": "*",
|
|
"fof/horizon": "^1.0"
|
|
},
|
|
"scripts": {
|
|
"analyse:phpstan": "phpstan analyse",
|
|
"clear-cache:phpstan": "phpstan clear-result-cache"
|
|
},
|
|
"scripts-descriptions": {
|
|
"analyse:phpstan": "Run static analysis"
|
|
}
|
|
}
|