Opis
Trwała pamięć podręczna obiektów oparta na Redis®¹. Ogsługuje Predis, PhpRedis (PECL), Relay, replikację, klastrowanie iWP-CLI.
Aby dostosować parametry połączenia, dodać prefiks do kluczy pamięci podręcznej lub skonfigurować replikację/klastrowanie, zapoznaj się z opcjami konfiguracji.
Object Cache Pro
Zaplecze pamięci podręcznej obiektów Redis®¹ klasy biznesowej. Naprawdę niezawodne, wysoce zoptymalizowane, w pełni konfigurowalne i z dedykowanym inżynierem, gdy najbardziej tego potrzebujesz.
- Napisany pod kątem wydajności
- W 100% zgodny z API WordPress
- Szybsza serializacja i kompresja
- Łatwe debugowanie i logowanie
- Wstępne pobieranie i analiza pamięci podręcznej
- W pełni przetestowany (100% pokrycia kodu)
- Bezpieczne połączenia z TLS
- Kontrole stanu za pośrednictwem interfejsu WordPress i WP CLI
- Zoptymalizowany pod kątem WooCommerce, Jetpack i Yoast SEO
Dowiedz się więcej o Object Cache Pro.
¹ Redis jest zarejestrowanym znakiem towarowym firmy Redis Ltd. Wszelkie prawa do niego należą do firmy Redis Ltd. Wszelkie wykorzystanie znaku przez Redis Object Cache ma charakter wyłącznie informacyjny i nie oznacza żadnego sponsorowania, poparcia ani powiązania między firmą Redis a Redis Object Cache.
Rozwiązywanie problemów
Odpowiedzi na często zadawane pytania i rozwiązywanie typowych błędów można znaleźć w FAQ. Przeczytanie ich jest zawsze szybsze niż czekanie na odpowiedź na forach pomocy technicznej.
Konfiguracja
Wtyczka zawiera obszerny zestaw opcji konfiguracji i przykładów połączeń. Zaawansowani użytkownicy mogą zapoznać się z sekcją Skalowanie i replikacja.
Polecenia WP CLI
W przypadku Redis Object Cache dostępne są różne polecenia WP CLI. Aby uzyskać więcej informacji, po zainstalowaniu wtyczki uruchom polecenie wp help redis.
Zrzuty ekranu
Instalacja
Aby uzyskać szczegółowe instrukcje dotyczące instalacji, zapoznaj się z obszerną instrukcją instalacji.
Recenzje
Kontrybutorzy i deweloperzy
„Redis – Podręczna pamięć obiektowa” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój wtyczki.
ZaangażowaniWtyczka „Redis – Podręczna pamięć obiektowa” została przetłumaczona na 14 języków. Podziękuj tłumaczom za ich wkład.
Przetłumacz wtyczkę “Redis – Podręczna pamięć obiektowa” na swój język.
Interesuje cię rozwój wtyczki?
Przeglądaj kod, sprawdź repozytorium SVN lub czytaj dziennik rozwoju przez RSS.
Rejestr zmian
2.7.0
- Zachowaj klucz TTL podczas wywoływania metod (in|de)krementacji
- Zaktualizowano sygnatury funkcji
wp_cache_*(), aby odpowiadały rdzeniowi - Usunięto przestarzałą obsługę HHVM
- Usunięto przestarzałą stałą
WP_REDIS_SERIALIZER
2.6.5
- Naprawiono problem z (in|de)inkrementacją wartości pamięci podręcznej podczas korzystania z funkcji igbinary
2.6.4
- Zapobiegaj niektórym powiadomieniom o wycofaniu
- Naprawiono problem z (in|de)inkrementacją wartości pamięci podręcznej
2.6.3
- Przełącz na
E_USER_DEPRECATEDzamiast_doing_it_wrong()w drop-in - Naprawiono błąd występujący podczas używania Credis (przestarzałe) jako klienta
2.6.2
- Naprawiono więcej błędów parsowania heredoc w PHP 7.2
2.6.1
- Naprawiono błąd parsowania heredoc w PHP 7.2
- Naprawiono wywołanie niezdefiniowanej funkcji
wp_rand()
2.6.0
- Dodano nagłówek
Główna gałąź - Dodano
iddo znaczników script/style - Zaktualizowano Credis do wersji 2.4.0
- Zaktualizowano Credis do wersji 1.17.0
- Oznacz jako przetestowane do 6,8
- Przestrzegaj kontroli wtyczki (PCP)
- Naprawiono funkcję zwiększania/zmniejszania, która nie działała z serializatorem
- Naprawiono rzadki problem z trybem replikacji
- Naprawiono rzadki błąd krytyczny w diagnostyce
2.5.4
- Uwzględnia
WP_REDIS_SCHEMEw przypadku połączeń klastra - Naprawiono problem z połączeniem Predis i
SentinelReplication - Naprawiono podwójny ukośnik w adresie URL
admin.css
2.5.3
- Dodano stałą
WP_REDIS_DISABLE_GROUP_FLUSH - Dodano filtr
redis_cache_manager_capabilityi stałąWP_REDIS_MANAGER_CAPABILITY - Dodano obsługę
WP_REDIS_SSL_CONTEXTdla połączeń klastra PhpRedis - Naprawiono kilka problemów z Predis i połączeniem klastrowym/replikowanym
- Naprawiono kolejny rzadki błąd krytyczny w
show_error_and_die()
2.5.2
- Uwzględniono
WP_REDIS_FLUSH_TIMEOUTw skryptach opróżniania Lua - Poprawiono obsługę
DISALLOW_FILE_MODS - Przywrócono zmianę zachowania na
sanitize_key_part() - Naprawiono rzadki błąd krytyczny w
show_error_and_die()(ponownie)
2.5.1
- Dodano limity czasu do diagnostyki
- Obsługa rzadkich instalacji PHP bez rozszerzenia
sockets - Naprawiono rzadki błąd krytyczny w
show_error_and_die() - Naprawiono ostrzeżenie o wycofaniu w
sanitize_key_part()
2.5.0
- Wymagana jest wersja WordPress 4.6 lub nowsza
- Załaduj domenę tekstową tylko wtedy, gdy jest to konieczne
- Added
WP_REDIS_DISABLE_DROPIN_CHECKconstant - Respect
file_mod_allowedfilter andDISALLOW_FILE_MODSconstant - Renamed
.redis-write-test.tmptest file toobject-cache.tmp - Call
redis_object_cache_erroraction beforewp_die() - Allow
WP_REDIS_PLUGIN_PATHto be defined elsewhere - Added experimental flush timeout (defaults to
5seconds) - Dropped unnecessary default ignored groups
2.4.4
- Improved handling of unexpected transaction results
2.4.3
- Naprawiono błąd zgodności PHP
<=7.2 - Fixed loading error-page translations
2.4.2
- Made admin-bar script more robust
- Improved recovery instructions on
redis-error.php - Improved CloudLinux detection
- Poprawki tłumaczeń
- Zapobiegaj nadpisywaniu wtyczek przez W3 Total Cache i LiteSpeed Cache
- Fixed ACL username support when using Predis and array syntax
2.4.1
- Naprawiono błąd PHP
<=7.2
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_SERIALIZERconfiguration constant, useWP_REDIS_IGBINARYinstead - Obsługa
WP_REDIS_USERNAMEw czasie używania 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_CONTEXTconfiguration 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
- Zaktualizowano Credis do wersji 2.1.2
- Improved documentation
2.2.4
- Register
wp redisCLI command late - Don’t compete with Object Cache Pro for
wp rediscommand - Prevent Perflab from overwriting the object cache drop-in
- Zaktualizowano Credis do wersji 2.1.1
- Avoid type error when transaction fails
- Check for incompatible content type headers
2.2.3
- Added
wp_cache_flush_group()support - Zaktualizowano Credis do wersji 1.14.0
- Drop
$delayparameter fromwp_cache_flush() - Prevent rare error in diagnostics when reading connection errors
2.2.2
- Use
QM_Data_Cacheinstead ofQM_Data - Fixed
WP_Erroruse statement non-compound name warning
2.2.1
- Added WordPress 6.1
wp_cache_supports()function - Zaktualizowano Predis do wersji 2.0.3
- Avoid early
microtime()calls inWP_Object_Cache::get() - Support Query Monitor’s new
QM_Dataclass - Throw exception of pipeline returns unexpected results
2.2.0
- Added
redis_cache_add_non_persistent_groupsfilter - Fixed
wp_add_dashboard_widgetparameters - Fixed
WP_REDIS_SERVERSreplication issue with Predis v2.0 - Fixed
WP_REDIS_CLUSTERstring support - Fixed issue when
MGETfails inget_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()andwp_cache_set_multiple()
2.1.2
- Fixed and improved
wp_cache_*_multiple()logic - Call
redis_object_cache_setaction inwp_cache_set_multiple() - Call
redis_object_cache_deleteaction inwp_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_DIRtoWP_REDIS_PLUGIN_DIR - Fixed rare fatal error in diagnostics
- Allow Predis v1.1 Composer installs
- Support using
WP_REDIS_CLUSTERstring
2.1.0
- Bumped PHP requirement to 7.0
- Deprecated Credis and HHVM clients
- Zaktualizowano Predis do wersji 2.0.0
- Zaktualizowano Credis do wersji 1.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
- Zaktualizowano Predis do wersji 1.1.10
- Zaktualizowano Credis do wersji 1.13.0
- Support
composer/installersv1 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
- Zaktualizowano ApexCharts do wersji 3.31.0
2.0.22
- PHP 8.1 compatibility fixes
- Zaktualizowano Predis do wersji 1.1.9
- Added settings link to widget
- Overhauled diagnostics pane
- Zaktualizowano ApexCharts do wersji 3.30.0
- Redirect to plugin settings after activation
- Fixed wrong path to
diagnostics.phpfile - 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.phpfile
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_CLIistrue
2.0.18
- Added
redis_object_cache_traceaction andWP_REDIS_TRACEconstant - Zaktualizowano ApexCharts do wersji 3.26.0
- Fixed and issue with
WP_REDIS_DISABLE_METRICS
2.0.17
- Code cleanup
- Fixed missing metrics
- Fixed filesystem test
2.0.16
- Zaktualizowano Credis do wersji 1.11.4
- Fixed drop-in notice styling
- Moved metrics into dedicated class
- Added
redis_cache_validate_dropinfilter - Use
WP_DEBUG_DISPLAY(instead ofWP_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_SERIALIZERto diagnostics - Improved speed of
build_key() - Support settings
WP_REDIS_PREFIXandWP_REDIS_SELECTIVE_FLUSHvia environment variable - Added
WP_REDIS_METRICS_MAX_TIMEto adjust stored metrics timeframe - Delay loading of text domain and schedule until
inithook - Zaktualizowano Predis do wersji 1.1.6
- Prevent variable referencing issue in
connect_using_credis()
2.0.13
- Updated bundled Predis library to v1.1.4
- Made
redis-cachea global group for improved metrics on multisite - Switched to short array syntax
- Added
@sincetags to all hooks - Use
parse_url()instead ofwp_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
- Zaktualizowano Predis do wersji 1.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-cacheas JS event namespace - Hide Pro line in widget when banners are disabled
- Renamed
redis_object_cache_get_multiaction toredis_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_timeoutsupport 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_FILEwhen copying theobject-cache.php - Don’t encode bullets in password diagnostics
- Call
redis_object_cache_update_dropinduring dropin update
2.0.3
- Hide „Metrics” tab when metrics are disabled
- Fixed
admin.jsnot 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-installerpackage - Prevent
QM_Collectorconflicts with other plugins - Prevent metric issues when cache is not available
- Fixed „Settings” link in plugin list
- Fixed
WP_REDIS_DISABLEDlogic
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 code standards
- Overhauled the settings screen
- Added object cache metrics (on dashboard widget and settings)
- Added support for Query Monitor
- Added
Rhubarb\RedisCachenamespace to all files - Added support for WP 5.5’s new
wp_cache_get_multi()function - Added
redis_object_cache()function to retrieve plugin instance - Added dropin warnings to network dashboard
- Added support for setting Sentinel database numbers
- Support Redis 6 ACL username and password authentication
- Support overwriting existing dropin on setting screen
- Use singleton pattern to instantiate plugin
- Use Composer to install and load Predis
- Update object cache dropin during plugin update
- Use separate methods to connect with all clients
- Removed
CUSTOM_USER_TABLEandCUSTOM_USER_META_TABLEweirdness - Added
themesas ignored group - Changed default connection and read timeout to 1 second
- Prevent race condition in
add_or_replace() - Renamed
WP_CACHE_KEY_SALTtoWP_REDIS_PREFIXfor clarity - Replaced „slave” terminology with „replica”
- Only
SELECTdatabase when it’s not0
1.6.1
- Fixed issue with footer comment showing during AJAX requests
1.6.0
- Improved group name sanitization (thanks @naxvog)
- Prevent fatal error when replacing foreign dropin
- Added HTML footer comment with optional debug information
- Removed prefix suggestions
The HTML footer comment only prints debug information when WP_DEBUG is enabled. To disable the comment entirely, set the WP_REDIS_DISABLE_COMMENT constant to true.
1.5.9
- Fixed missing
$infovariable assignment in constructor - Fixed MaxTTL warning condition
- Switched to using default button styles
1.5.8
- Added warning message about invalid MaxTTL
- Added warning about unmaintained Predis library
- Added suggestion about shorter, human-readable prefixes
- Added Redis Cache Pro compatibility to settings
- Fixed flushing the cache when the prefix contains special characters
- Fixed calling Redis
INFOwhen using clusters - Cleaned up the settings a little bit
1.5.7
- Added support for PhpRedis TLS connections
- Added support for timeout, read timeout and password when using PhpRedis cluster
- Fixed issue with
INFOcommand - Fixed object cloning when setting cache keys
1.5.6
- Added object cloning to in-memory cache
- Fixed PHP notice related to
read_timeoutparameter
1.5.5
Please flush the object cache after updating the drop to v1.5.5 to avoid dead keys filling up Redis memory.
- Removed lowercasing keys
- Remove scheduled metrics event
- Fixed Redis version call when using replication
1.5.4
- Removed metrics
1.5.3
- Fixed: Call to undefined function
get_plugin_data() - Fixed: Call to undefined method
WP_Object_Cache::redis_version()
1.5.2
- Added Redis version to diagnostics
- Added
WP_REDIS_DISABLE_BANNERSconstant to disable promotions - Fixed an issue with
redis.replicate_commands()
1.5.1
This plugin turned 5 years today (Nov 14th) and its only fitting to release the business edition today as well.
Object Cache Pro is a truly reliable, highly optimized and easy to debug rewrite of this plugin for SMBs.
- Added execution times to actions
- Added
WP_REDIS_VERSIONconstant - Fixed PhpRedis v3 compatibility
- Fixed an issue with selective flushing
- Fixed an issue with
mb_*functions not existing - Replaced Email Address Encoder card with Redis Cache Pro card
- Gather version metrics for better decision making
1.5.0
Since Predis isn’t maintained any longer, it’s highly recommended to switch over to PhpRedis (the Redis PECL extension).
- Improved Redis key name builder
- Added support for PhpRedis serializers
- Added
redis_object_cache_erroraction - Added timeout, read-timeout and retry configuration
- Added unflushable groups (defaults to
['userlogins']) - Fixed passwords not showing in server list
1.4.3
- Require PHP 5.4 or newer
- Use pretty print in diagnostics
- Throw exception if Redis library is missing
- Fixed cache not flushing for some users
- Fixed admin issues when
WP_REDIS_DISABLEDisfalse
1.4.2
- Added graceful Redis failures and
WP_REDIS_GRACEFULconstant - Improved cluster support
- Added
redis_cache_expirationfilter - Renamed
redis_object_cache_getfilter toredis_object_cache_get_value
1.4.1
- Fixed potential fatal error related to
wp_suspend_cache_addition()
1.4.0
- Added support for igbinary
- Added support for
wp_suspend_cache_addition()
1.3.9
- Fixed
WP_REDIS_SHARDSnot showing up in server list - Fixed
WP_REDIS_SHARDSnot working when using PECL extension - Removed
WP_REDIS_SCHEMEandWP_REDIS_PATHleftovers
1.3.8
- Switched from single file Predis version to full library
1.3.7
- Revert back to single file Predis version
1.3.6
- Added support for Redis Sentinel
- Added support for sharing
- Switched to PHAR version of Predis
- Improved diagnostics
- Added
WP_REDIS_SELECTIVE_FLUSH - Added
$fail_gracefullyparameter toWP_Object_Cache::__construct() - Always enforce
WP_REDIS_MAXTTL - Pass
$selectiveand$salttoredis_object_cache_flushaction - Don’t set
WP_CACHE_KEY_SALTconstant
1.3.5
- Added basic diagnostics to admin interface
- Added
WP_REDIS_DISABLEDconstant to disable cache at runtime - Prevent „Invalid plugin header” error
- Return integer from
increment()anddecrement()methods - Prevent object cache from being instantiated more than once
- Always separate cache key
prefixandgroupby semicolon - Improved performance of
build_key() - Only apply
redis_object_cache_getfilter if callbacks have been registered - Fixed
add_or_replace()to only set cache key if it doesn’t exist - Added
redis_object_cache_flushaction - Added
redis_object_cache_enableaction - Added
redis_object_cache_disableaction - Added
redis_object_cache_update_dropinaction
1.3.4
- Added WP-CLI support
- Show host and port unless scheme is unix
- Updated default global and ignored groups
- Do a cache flush when activating, deactivating and uninstalling
1.3.3
- Zaktualizowano Predis do wersji
1.1.1. - Added
redis_instance()method - Added
incr()method alias for Batcache compatibility - Added
WP_REDIS_GLOBAL_GROUPSandWP_REDIS_IGNORED_GROUPSconstant - Added
redis_object_cache_deleteaction - Use
WP_PLUGIN_DIRwithWP_CONTENT_DIRas fallback - Set password when using a cluster or replication
- Show Redis client in
stats() - Change visibility of
$cacheto public - Use old array syntax, just in case
1.3.2
- Make sure
$resultis notfalseinWP_Object_Cache::get()
1.3.1
- Fixed connection issue
1.3
- New admin interface
- Added support for
wp_cache_get()’s$forceand$foundparameter - Added support for clustering and replication with Predis
1.2.3
- Ulepszenia interfejsu użytkownika
1.2.2
- Added
redis_object_cache_setaction - Added
redis_object_cache_getaction and filter - Prevented duplicated admin status messages
- Load bundled Predis library only if necessary
- Load bundled Predis library using
WP_CONTENT_DIRconstant - Updated
stats()method output to be uniform with WordPress
1.2.1
- Added
composer.json - Added deactivation and uninstall hooks to delete
object-cache.php - Added local serialization functions for better
advanced-cache.phpsupport - Zaktualizowano Credis do wersji
1.0.3 - Updated heading structure to be semantic
1.2
- Added Multisite support
- Moved admin menu under Settings menu
- Fixed PHP notice in
get_redis_client_name()
1.1.1
- Call
select()and optionallyauth()if HHVM extension is used
1.1
- Added support for HHVM’s Redis extension
- Added support for PECL Redis extension
- Added
WP_REDIS_CLIENTconstant, to set preferred Redis client - Added
WP_REDIS_MAXTTLconstant, to force expiration of cache keys - Improved
add_or_replace(),get(),set()anddelete()methods - Improved admin screen styles
- Removed all internationalization/localization from drop-in
1.0.2
- Added „Flush Cache” button
- Added support for UNIX domain sockets
- Improved cache object retrieval performance significantly
- Updated bundled Predis library to version
1.0.1
1.0.1
- Load plugin translations
- Hide global admin notices from non-admin users
- Prevent direct file access to
redis-cache.phpandadmin-page.php - Colorize „Disable Object Cache” button
- Call
Predis\Client->connect()to avoid potential uncaughtPredis\Connection\ConnectionException
1.0
- Initial release




