Redis Object Cache

Descripció

A persistent object cache backend powered by Redis®¹. Supports Predis, PhpRedis (PECL), Relay, replication, sentinels, clustering and WP-CLI.

To adjust the connection parameters, prefix cache keys or configure replication/clustering, see the configuration options.

Object Cache Pro

A business class Redis®¹ object cache backend. Truly reliable, highly optimized, fully customizable and with a dedicated engineer when you most need it.

  • Rewritten for raw performance
  • 100% WordPress API compliant
  • Faster serialization and compression
  • Easy debugging & logging
  • Cache prefetching and analytics
  • Fully unit tested (100% code coverage)
  • Secure connections with TLS
  • Health checks via WordPress & WP CLI
  • Optimized for WooCommerce, Jetpack & Yoast SEO

Learn more about Object Cache Pro.

¹ Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Any use by Redis Object Cache is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and Redis Object Cache.

Troubleshooting

Answers to common questions and troubleshooting of common errors can be found in the FAQ. Reading these is always faster than waiting for a response in the support forums.

Configuration

The plugin comes with vast set of configuration options and connection examples. Advanced users may consult Scaling and replication

WP CLI commands

Redis Object Cache has various WP CLI commands, for more information run wp help redis after installing the plugin.

Captures

  • Plugin settings, connected to a single Redis server.
  • Plugin settings, displaying recent response time metrics.
  • Plugin settings, showing diagnostic information.
  • Dashboard widget, displaying recent response time metrics.

Instal·lació

For detailed installation instructions, please read the extensive installation instructions.

Ressenyes

1 de març de 2024 2 respostes
I love how minimal this plugin is. It keeps things nice and light and allows for quick configuration via PHP constants. However I do not recommend using this plugin if you are not familiar with your server configuration or at least editing PHP files.
1 de març de 2024 2 respostes
I purchased the pro version only to realise that it has far more features than I needed. I cancelled according to their 14 day money back guarantee, took a few message to get a response. They requested that I submit a form which I did and never heard form them again.
8 de febrer de 2024 4 respostes
Lots of errors in the backend, slwo down your work in the backend. Not compatible with Rank Math and lots of problems with aruba server.
20 de gener de 2024
I tried everything to make my sites faster (wordpress + woocommerce) which consume a lot of resources. After installing Redis on my VPN and this plugin, my sites started to work smoother and consuming way less resources. I was using memcached plugins, but nothing like this, it just works F great! A word of caution (because it happened to me). If you work with a VPS like me, you MUST separate the cache databases either by unique prefix, database number or both, otherwise the cache will collide and your sites will get mixed. Read the documentation. I easily rate this the best plugin for object cache (and I have tried literally almost all cache plugins out there) and making your website fast even in low spec servers.
3 de gener de 2024 4 respostes
Does exactly what it sets out to do. Such a simple set up. I also appreciated the developer feedback on all the reviews. Thank you!
Llegiu totes les 155 ressenyes

Col·laboradors i desenvolupadors

«Redis Object Cache» és programari de codi obert. La següent gent ha col·laborat en aquesta extensió.

Col·laboradors

“Redis Object Cache” s'ha traduït a 10 configuracions regionals. Gràcies als traductos per les seves aportacions.

Tradueix “Redis Object Cache” a la teva llengua.

Interessats en el desenvolupament?

Navegueu pel codi, baixeu-vos el repositori SVN, o subscriviu-vos al registre de desenvolupament per fisl de subscripció RSS.

Registre de canvis

2.5.1

  • Added timeouts to diagnostics
  • Support rare PHP installations without sockets extension
  • Fixed rare fatal error in show_error_and_die()
  • Fixed deprecation notice warning in sanitize_key_part()= 2.5.0 =

  • Require WordPress 4.6 or newer

  • Load text-domain only when needed
  • Added WP_REDIS_DISABLE_DROPIN_CHECK constant
  • Respect file_mod_allowed filter and DISALLOW_FILE_MODS constant
  • Renamed .redis-write-test.tmp test file to object-cache.tmp
  • Call redis_object_cache_error action before wp_die()
  • Allow WP_REDIS_PLUGIN_PATH to be defined elsewhere
  • Added experimental flush timeout (defaults to 5 seconds)
  • Dropped unnecessary default ignored groups

2.4.4

  • Improved handling of unexpected transaction results

2.4.3

  • Fixed PHP <=7.2 syntax error
  • Fixed loading error-page translations

2.4.2

  • Made admin-bar script more robust
  • Improved recovery instructions on redis-error.php
  • Improved CloudLinux detection
  • Localization improvements
  • Prevent W3 Total Cache and LiteSpeed Cache from overwriting drop-in
  • Fixed ACL username support when using Predis and array syntax

2.4.1

  • Fix PHP <=7.2 syntax error

2.4.0

  • Flush cache when toggling the object cache
  • Show a custom error message when Redis is unreachable
  • Don’t allow object cache to be enabled when Redis is unreachable
  • Deprecated risky WP_REDIS_SERIALIZER configuration constant, use WP_REDIS_IGBINARY instead
  • Support WP_REDIS_USERNAME when using Predis
  • Show cache hit ratio decimal points in Admin Bar node
  • Obscure secrets when displaying WP_REDIS_SERVERS
  • Improved CloudLinux’s Accelerate WP compatibility
  • Admin bar cache flush now uses AJAX

2.3.0

  • Show dashboard widget only to admins
  • Added Admin Bar node (disable using WP_REDIS_DISABLE_ADMINBAR)
  • Added WP_REDIS_SSL_CONTEXT configuration constant
  • Throw errors when connection error occurs
  • Added support for usernames when using Predis
  • Added support for loading Predis from WP_REDIS_PLUGIN_PATH
  • Made Predis unix socket connections stricter
  • Fixed rare group flushing bug
  • Fixed cluster ping when using Predis
  • Updated Predis to v2.1.2
  • Improved documentation

2.2.4

  • Register wp redis CLI command late
  • Don’t compete with Object Cache Pro for wp redis command
  • Prevent Perflab from overwriting the object cache drop-in
  • Updated Predis to v2.1.1
  • Avoid type error when transaction fails
  • Check for incompatible content type headers

2.2.3

  • Added wp_cache_flush_group() support
  • Updated Credis to v1.14.0
  • Drop $delay parameter from wp_cache_flush()
  • Prevent rare error in diagnostics when reading connection errors

2.2.2

  • Use QM_Data_Cache instead of QM_Data
  • Fixed WP_Error use statement non-compound name warning

2.2.1

  • Added WordPress 6.1 wp_cache_supports() function
  • Updated Predis to v2.0.3
  • Avoid early microtime() calls in WP_Object_Cache::get()
  • Support Query Monitor’s new QM_Data class
  • Throw exception of pipeline returns unexpected results

2.2.0

  • Added redis_cache_add_non_persistent_groups filter
  • Fixed wp_add_dashboard_widget parameters
  • Fixed WP_REDIS_SERVERS replication issue with Predis v2.0
  • Fixed WP_REDIS_CLUSTER string support
  • Fixed issue when MGET fails in get_multiple() call
  • Fixed several warnings in the event of pipeline failures

2.1.6

  • Fixed SVN discrepancies

2.1.5

  • Fixed is_predis() call

2.1.4

  • Added is_predis() helper

2.1.3

  • Fixed bug in wp_cache_add_multiple() and wp_cache_set_multiple()

2.1.2

  • Fixed and improved wp_cache_*_multiple() logic
  • Call redis_object_cache_set action in wp_cache_set_multiple()
  • Call redis_object_cache_delete action in wp_cache_delete_multiple()
  • Check if raw group name is ignored, not sanitized name
  • Removed tracing

2.1.1

  • Bumped PHP requirement to 7.2
  • Renamed WP_REDIS_DIR to WP_REDIS_PLUGIN_DIR
  • Fixed rare fatal error in diagnostics
  • Allow Predis v1.1 Composer installs
  • Support using WP_REDIS_CLUSTER string

2.1.0

  • Bumped PHP requirement to 7.0
  • Deprecated Credis and HHVM clients
  • Updated Predis to v2.0.0
  • Updated Credis to v1.13.1
  • Improved cluster readability in diagnostics
  • Improved connecting to clusters
  • Fixed pinging clusters after connecting
  • Fixed several bugs in connect_using_credis()

2.0.26

  • Fixed a bug in wp_cache_delete_multiple() when using Predis
  • Fixed a bug in wp_cache_add_multiple() when cache addition is suspended

2.0.25

  • Removed broken wp_cache_add_multiple() function

2.0.24

  • Improve metrics label/tooltip formatting
  • Fix metrics chart not rendering
  • Updated Predis to v1.1.10
  • Updated Credis to v1.13.0
  • Support composer/installers v1 and v2
  • Link to settings page when foreign drop-in was found
  • Added wp_cache_flush_runtime() function
  • Added wp_cache_add_multiple() function
  • Added wp_cache_delete_multiple() function

2.0.23

  • Added support for Relay
  • Minor UX fixes and improvements
  • Fixed PHP 8.1 deprecation notice
  • Updated ApexCharts to v3.31.0

2.0.22

  • PHP 8.1 compatibility fixes
  • Upgraded to Predis v1.1.9
  • Added settings link to widget
  • Overhauled diagnostics pane
  • Updated ApexCharts to v3.30.0
  • Redirect to plugin settings after activation
  • Fixed wrong path to diagnostics.php file
  • Fixed chart overflow in settings tab
  • Fixed Predis cluster ping
  • Avoid warning when content folder is not writeable

2.0.21

  • Added metrics diagnostics
  • Added WP_Object_Cache::decr() alias
  • Moved diagnostics.php file

2.0.20

  • Fix wp.org release

2.0.19

  • Make metric identifier unique
  • Set unique prefix for sites hosted on Cloudways
  • Don’t print HTML debug comment when WP_CLI is true

2.0.18

  • Added redis_object_cache_trace action and WP_REDIS_TRACE constant
  • Updated ApexCharts to v3.26.0
  • Fixed and issue with WP_REDIS_DISABLE_METRICS

2.0.17

  • Code cleanup
  • Fixed missing metrics
  • Fixed filesystem test

2.0.16

  • Updated Credis to v1.11.4
  • Fixed drop-in notice styling
  • Moved metrics into dedicated class
  • Added redis_cache_validate_dropin filter
  • Use WP_DEBUG_DISPLAY (instead of WP_DEBUG) constant to display debug information
  • Fixed rare error in wp_cache_get_multiple()
  • Removed intval() usage

2.0.15

  • Reverted build_key() changes due to issues in multisite environments

2.0.14

  • Made Object Cache Pro card translatable
  • Added WP_REDIS_SERIALIZER to diagnostics
  • Improved speed of build_key()
  • Support settings WP_REDIS_PREFIX and WP_REDIS_SELECTIVE_FLUSH via environment variable
  • Added WP_REDIS_METRICS_MAX_TIME to adjust stored metrics timeframe
  • Delay loading of text domain and schedule until init hook
  • Upgraded bundled Predis library to v1.1.6
  • Prevent variable referencing issue in connect_using_credis()

2.0.13

  • Updated bundled Predis library to v1.1.4
  • Made redis-cache a global group for improved metrics on multisite
  • Switched to short array syntax
  • Added @since tags to all hooks
  • Use parse_url() instead of wp_parse_url() in drop-in
  • Fixed plugin instance variable name in wp redis status

2.0.12

  • Fixed bytes metrics calculation
  • Fixed an issue with non-standard Predis configurations
  • Improve WordPress Coding Standards

2.0.11

  • Fixed an issue in wp_cache_get_multiple() when using Predis
  • Prevent undefined index notice in diagnostics

2.0.10

  • Fixed unserializing values in wp_cache_get_multiple()

2.0.9

  • Highlight current metric type using color
  • Show “Metrics” tab when metrics are disabled
  • Refactored connection and Redis status logic
  • Updated Predis to v1.1.2
  • Remove Predis deprecation notice
  • Fixed fetching derived keys in wp_cache_get_multiple()

2.0.8

  • Fixed tabs not working in 2.0.6 and 2.0.7 due to WP.org SVN issue

2.0.7

  • Fixed issue with wp_cache_get_multiple()

2.0.6

  • Added experimental filesystem test to diagnostics
  • Refactored settings tab logic (fixed jumping, too)
  • Fixed issues with wp_cache_get_multiple()
  • Return boolean from wp_cache_delete()
  • Use redis-cache as JS event namespace
  • Hide Pro line in widget when banners are disabled
  • Renamed redis_object_cache_get_multi action to redis_object_cache_get_multiple

2.0.5

Version 2.0 is a significant rewrite of the plugin. Please read the v2.0.0 release notes.

  • Fixed multisite action buttons not working
  • Removed outdated PHP 5.4 warning
  • Added read_timeout support to Credis
  • Display connection parameters when using Credis
  • Added wiki link to Predis upgrade notice

2.0.4

  • Attempt to reliably update the dropin when it’s outdated
  • Show ACL username on settings screen
  • Show full diagnostics with wp redis status
  • Always set FS_CHMOD_FILE when copying the object-cache.php
  • Don’t encode bullets in password diagnostics
  • Call redis_object_cache_update_dropin during dropin update

2.0.3

  • Hide “Metrics” tab when metrics are disabled
  • Fixed admin.js not loading in multisite environments
  • Avoid fatal error when interacting with metrics but Redis went away
  • Added WP_Object_Cache::__get() for backwards compatibility

2.0.2

  • Updated POT file and comments for translators

2.0.1

  • Support older versions of Query Monitor
  • Made “Dropin” status more helpful
  • Hide Redis version in settings when it isn’t available
  • Collapsed dependency paths using composer-custom-directory-installer package
  • Prevent QM_Collector conflicts with other plugins
  • Prevent metric issues when cache is not available
  • Fixed “Settings” link in plugin list
  • Fixed WP_REDIS_DISABLED logic

2.0.0

Version 2.0 is a significant rewrite. The plugin now requires PHP 5.6, just like WordPress 5.2 does.

The GitHub and Composer repository was moved from tillkruss/redis-cache to rhubarbgroup/redis-cache.

On multisite networks, be sure to “Network Activate” the plugin after upgrading to v2.x.

  • Require PHP 5.6
  • Plugin is now “network-only”
  • Switch to WPCS for …