Skip to content

Commit

Permalink
Merge pull request #1313 from acelaya-forks/feature/redis-memory-usage
Browse files Browse the repository at this point in the history
Added a default lifetime for cache entries when using redis
  • Loading branch information
acelaya authored Jan 7, 2022
2 parents dc648b0 + 3647340 commit 470c62d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

## [Unreleased]
## [2.10.2] - 2022-01-07
### Added
* *Nothing*

Expand All @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
### Fixed
* [#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.
* [#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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"predis/predis": "^1.1",
"pugx/shortid-php": "^1.0",
"ramsey/uuid": "^4.2",
"shlinkio/shlink-common": "^4.2.1",
"shlinkio/shlink-common": "^4.3",
"shlinkio/shlink-config": "^1.4",
"shlinkio/shlink-event-dispatcher": "^2.3",
"shlinkio/shlink-importer": "^2.5",
Expand Down
1 change: 1 addition & 0 deletions config/autoload/redis.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
$redisServers === null => [],
default => [
'cache' => [
'default_lifetime' => 86400, // 24h
'redis' => [
'servers' => $redisServers,
'sentinel_service' => env('REDIS_SENTINEL_SERVICE'),
Expand Down

0 comments on commit 470c62d

Please sign in to comment.