Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

danielbachhuber
Copy link
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Be explicit for no results when using wp transient list and external object cache
2 participants