Skip to content

Commit 9b3fb86

Browse files
Apply suggestions from code review wordpress cache ttl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5cb0dd2 commit 9b3fb86

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ To set a TTL for all keys stored in Redis, add the following lines to your wp-co
2929
define('WP_REDIS_PREFIX', 'example');
3030
define('WP_REDIS_MAXTTL', '900');
3131
define('WP_REDIS_SELECTIVE_FLUSH', true);
32-
```
3332
```{important}
3433
Be sure to change the example prefix to a unique name for your application so Redis keys do not get mixed up when Redis is used by multiple applications on the same Hypernode.
3534
```
@@ -38,7 +37,7 @@ Be sure to change the example prefix to a unique name for your application so Re
3837

3938
- **WP_REDIS_PREFIX** adds a clear prefix to your Redis keys. This helps prevent key collisions, especially when multiple applications use Redis.
4039
- **WP_REDIS_MAXTTL** sets a maximum lifetime for cached items, in this example 900 seconds.
41-
- **WP_REDIS_SELECTIVE_FLUSH*** ensures that only keys related to this WordPress installation are flushed, instead of clearing the entire Redis database.
40+
- **WP_REDIS_SELECTIVE_FLUSH**\* ensures that only keys related to this WordPress installation are flushed, instead of clearing the entire Redis database.
4241

4342
## How to Install Redis Object Cache
4443

0 commit comments

Comments
 (0)