Skip to content

Commit

Permalink
Fix code block on Object Cache Pro page (#9405)
Browse files Browse the repository at this point in the history
* outdent the alert
we're no longer in the numbered list so I don't know that we need to be indented here as if we were. this may be what's causing the formatting issue.

* Align alert tags

---------

Co-authored-by: Rachel Whitton <[email protected]>
  • Loading branch information
jazzsequence and rachelwhitton authored Jan 30, 2025
1 parent 722833f commit 9079fb3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/content/addons/object-cache/howto/wordpress.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,13 @@ Lando's [Pantheon recipe](https://docs.lando.dev/plugins/pantheon/) includes Red
```
<Alert title="Note" type="info">
If you don't want to bother with changing the configuration for local environments, you can simply disable Object Cache Pro for Lando and leave the existing configuration:
```php
if ( isset( $_ENV['LANDO'] ) && 'ON' === $_ENV['LANDO'] ) {
define( 'WP_REDIS_DISABLED', true );
}
```
If you don't want to bother with changing the configuration for local environments, you can simply disable Object Cache Pro for Lando and leave the existing configuration:

```php
if ( isset( $_ENV['LANDO'] ) && 'ON' === $_ENV['LANDO'] ) {
define( 'WP_REDIS_DISABLED', true );
}
```
</Alert>
Make sure to commit your code back to your environment when you have made the appropriate changes.
Expand Down

0 comments on commit 9079fb3

Please sign in to comment.