mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-27 20:11:34 +03:00
Added a default lifetime for cache entries when using redis
This commit is contained in:
parent
dc648b0142
commit
364734094b
3 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).
|
The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).
|
||||||
|
|
||||||
## [Unreleased]
|
## [2.10.2] - 2022-01-07
|
||||||
### Added
|
### Added
|
||||||
* *Nothing*
|
* *Nothing*
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
|
||||||
### Fixed
|
### Fixed
|
||||||
* [#1293](https://github.com/shlinkio/shlink/issues/1293) Fixed error when trying to create/import short URLs with a too long title.
|
* [#1293](https://github.com/shlinkio/shlink/issues/1293) Fixed error when trying to create/import short URLs with a too long title.
|
||||||
* [#1306](https://github.com/shlinkio/shlink/issues/1306) Ensured remote IP address is not logged when using swoole/openswoole.
|
* [#1306](https://github.com/shlinkio/shlink/issues/1306) Ensured remote IP address is not logged when using swoole/openswoole.
|
||||||
|
* [#1308](https://github.com/shlinkio/shlink/issues/1308) Fixed memory leak when using redis due to the amount of non-expiring keys created by doctrine. Now they have a 24h expiration by default.
|
||||||
|
|
||||||
|
|
||||||
## [2.10.1] - 2021-12-21
|
## [2.10.1] - 2021-12-21
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
"predis/predis": "^1.1",
|
"predis/predis": "^1.1",
|
||||||
"pugx/shortid-php": "^1.0",
|
"pugx/shortid-php": "^1.0",
|
||||||
"ramsey/uuid": "^4.2",
|
"ramsey/uuid": "^4.2",
|
||||||
"shlinkio/shlink-common": "^4.2.1",
|
"shlinkio/shlink-common": "^4.3",
|
||||||
"shlinkio/shlink-config": "^1.4",
|
"shlinkio/shlink-config": "^1.4",
|
||||||
"shlinkio/shlink-event-dispatcher": "^2.3",
|
"shlinkio/shlink-event-dispatcher": "^2.3",
|
||||||
"shlinkio/shlink-importer": "^2.5",
|
"shlinkio/shlink-importer": "^2.5",
|
||||||
|
|
|
@ -11,6 +11,7 @@ return (static function (): array {
|
||||||
$redisServers === null => [],
|
$redisServers === null => [],
|
||||||
default => [
|
default => [
|
||||||
'cache' => [
|
'cache' => [
|
||||||
|
'default_lifetime' => 86400, // 24h
|
||||||
'redis' => [
|
'redis' => [
|
||||||
'servers' => $redisServers,
|
'servers' => $redisServers,
|
||||||
'sentinel_service' => env('REDIS_SENTINEL_SERVICE'),
|
'sentinel_service' => env('REDIS_SENTINEL_SERVICE'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue