Skip to content

Commit

Permalink
Use High performance Redis settings by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Jun 20, 2024
1 parent df8774a commit aa9acf6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 2.4.6: 2024-06-20

* Use High performance Redis settings by default

### 2.4.5: 2024-06-11

* Remove Koko Analytics and WCAG 2.0 form fields for Gravity Forms from default plugins
Expand Down
17 changes: 13 additions & 4 deletions config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,21 @@
'password' => env( 'REDIS_PASSWORD' ),
'prefix' => env( 'DB_NAME' ),
'database' => env( 'REDIS_DATABASE' ) ?: 0,
'maxttl' => 43200, // max cache half day
'timeout' => 1.0,
'read_timeout' => 1.0,
'split_alloptions' => true,
'maxttl' => 43200, // Max cache half day
'maxmemory-policy' => 'allkeys-lru',
'timeout' => 0.5,
'read_timeout' => 0.5,
'retry_interval' => 10,
'retries' => 3,
'backoff' => 'smart',
'compression' => 'zstd',
'serializer' => 'igbinary',
'async_flush' => true,
'split_alloptions' => true,
'prefetch' => true,
'strict' => true,
'debug' => false,
'save_commands' => false,
] );

if ( 'production' === getenv( 'WP_ENV' ) ) {
Expand Down

0 comments on commit aa9acf6

Please sign in to comment.