Skip to content

improved wording and add cache ttl explanation to woocommerce redis docs#469

Open
TimVNL wants to merge 4 commits intomasterfrom
update-redis-woocommerce
Open

improved wording and add cache ttl explanation to woocommerce redis docs#469
TimVNL wants to merge 4 commits intomasterfrom
update-redis-woocommerce

Conversation

@TimVNL
Copy link
Copy Markdown
Contributor

@TimVNL TimVNL commented Apr 9, 2026

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

Detected renamed/moved files:

docs/hypernode-platform/redis/how-to-flush-the-redis-cache.md => docs/hypernode-platform/tools/how-to-flush-the-redis-cache.md
docs/hypernode-platform/redis/how-to-solve-redis-error-oom-command-not-allowed-when-used-memory-maxmemory.md => docs/hypernode-platform/tools/how-to-solve-redis-error-oom-command-not-allowed-when-used-memory-maxmemory.md

To prevent 404 pages, consider adding the redirects to the new pages:

---
redirect_from:
  - docs/hypernode-platform/redis/how-to-flush-the-redis-cache.md
  - docs/hypernode-platform/redis/how-to-solve-redis-error-oom-command-not-allowed-when-used-memory-maxmemory.md
---


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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- **WP_REDIS_SELECTIVE_FLUSH*** ensures that only keys related to this WordPress installation are flushed, instead of clearing the entire Redis database.
- **WP_REDIS_SELECTIVE_FLUSH**\* ensures that only keys related to this WordPress installation are flushed, instead of clearing the entire Redis database.

TimVNL and others added 2 commits April 9, 2026 13:09
…woocommerce-and-wordpress-on-hypernode.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

define('WP_REDIS_PREFIX', 'example');
define('WP_REDIS_MAXTTL', '900');
define('WP_REDIS_SELECTIVE_FLUSH', true);
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```
```

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant