Skip to content

Warn when wp transient list is used with external object cache - #82

Merged
danielbachhuber merged 1 commit into
mainfrom
61-warn-transient-list
Feb 27, 2023
Merged

Warn when wp transient list is used with external object cache#82
danielbachhuber merged 1 commit into
mainfrom
61-warn-transient-list

Conversation

@danielbachhuber

Copy link
Copy Markdown
Member

Fixes #61

$ wp transient list
+---------------------------------+------------------------------------------+------------+
| name                            | value                                    | expiration |
+---------------------------------+------------------------------------------+------------+
| doing_cron                      | 1677266261.8137209415435791015625        | false      |
| health-check-site-status-result | {"good":16,"recommended":4,"critical":1} | false      |
+---------------------------------+------------------------------------------+------------+
$ wp plugin install --activate wp-redis
Installing WP Redis (1.3.2)
Downloading installation package from https://downloads.wordpress.org/plugin/wp-redis.1.3.2.zip...
The authenticity of wp-redis.1.3.2.zip could not be verified as no signature was found.
Unpacking the package...
Installing the plugin...
Plugin installed successfully.
Activating 'wp-redis'...
Plugin 'wp-redis' activated.
Success: Installed 1 of 1 plugins.
$ wp redis enable
Success: Enabled WP Redis by creating wp-content/object-cache.php symlink.
$ wp transient list
Warning: Transients are stored in an external object cache, and this command only shows those stored in the database.
+---------------------------------+------------------------------------------+------------+
| name                            | value                                    | expiration |
+---------------------------------+------------------------------------------+------------+
| health-check-site-status-result | {"good":16,"recommended":4,"critical":1} | false      |
+---------------------------------+------------------------------------------+------------+
@danielbachhuber
danielbachhuber merged commit 80aa8e1 into main Feb 27, 2023
@danielbachhuber
danielbachhuber deleted the 61-warn-transient-list branch February 27, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:transient-list Related to 'transient list' command

2 participants