Hongmu Notes
Home Program Notes What should I do if the Redis Object Cache plug-in cannot be linked after wordpress redis changes the password?
Program Notes wordpress

What should I do if the Redis Object Cache plug-in cannot be linked after wordpress redis changes the password?

What should I do if the Redis Object Cache plug-in cannot be linked after wordpress redis changes the password?

problem description:

My WordPress site is hosted on a server using the Baota Panel; PHP 8.0 has been installed, and Redis has been added via the Extension Panel.

When you install the Redis Object Cache plugin in WordPress, usually nothing special is required – simply start the plugin, and you're all set.

However, not setting a password for Redis is highly insecure and represents a risky security vulnerability; therefore, I still recommend configuring a password. However, after setting a password, the WordPress Redis Object Cache plugin will no longer be able to start.

terms of settlement

Path: /wp-content/plugins/redis-cache/includes; locate object-cache.php

The file contains approximately 620 lines; locate the `protected function build_parameters` and add a parameter line below it.

'password' => '*********',

After joining:

ad1a1b7183084925

Restart everything, reconnect everything – all set!

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

How do I disable revisions and automatic draft saving in WordPress?

How do I disable revisions and automatic draft saving in WordPress? Program Notes wordpress

WordPress's automatic article revision tracking feature logs every time you edit an article in the后台; each revision is recorded as a separate entry in the `wp_posts` table. Due to the interplay between article revisions and automatic saving, the article ID often grows larger over time. While this typically does not cause significant issues for your WordPress installation, an excessive number of article versions can place a considerable burden on your storage space and database...
👁 373
Detailed Tutorial on Migrating EmpireCMS Blog Data to WordPress

Detailed Tutorial on Migrating EmpireCMS Blog Data to WordPress Program Notes wordpress

PS1: Second revision – now supports data transfer between categories, posts, and tags. PS2: If the post IDs consistently don't match, you can try clearing the WordPress post category data table and relationship tables. I previously used Typecho for my blog, but later migrated to Empire; however, Empire has too many features – using it for a blog feels like putting a large hammer into a small hole! Additionally, I often record important code snippets in my blog – all of which I've painstakingly written...
👁 546
WordPress issue: pages freezing due to image transcoding

WordPress issue: pages freezing due to image transcoding Program Notes wordpress

Last night, while uploading an image, for some reason, the uploaded image was automatically transcoded. Transcoding type: BASE64 encoding. For an image on a website, simply upload it to your server and then access the link – the image will then be displayed. However, there is another approach: directly transcoding the image; then you can simply access the converted image using its encoded URL. Problem description: When an image is relatively small (e.g., only a few KB in size), transcoding it and then hosting it on a website can help avoid...
👁 152
WordPress database query operations

WordPress database query operations Program Notes wordpress

To connect to a database for a WordPress installation, you need to include the `wp-config.php` file in your PHP script. This file contains the database configuration details for WordPress installation and other constants. Here is a simple example demonstrating how to include the `wp-config.php` file and establish a database connection: // Include the wp-config.php file: require...
👁 378
WordPress MySQL Database Table and Subtable Structure Functionality Guide

WordPress MySQL Database Table and Subtable Structure Functionality Guide Program Notes wordpress

WordPress uses a MySQL database. Its data table structure differs slightly from that of conventional databases; data can be stored either in the form of standard data tables or as data elements – the latter approach is less intuitive when viewed directly. To become a developer, you must understand the basic structure of the WordPress database and be able to use it within your own plugins or themes to write to or read from the database. I. Data Tables – As of WordPress...
👁 374

Recommended reading

(Adaptive Mobile Version) Responsive Foreign Language School Website Source Code – HTML5 Responsive University/Institutional Website Template (PBootCMS – 0740)

(Adaptive Mobile Version) Responsive Foreign Language School Website Source Code – HTML5 Responsive University/Institutional Website Template (PBootCMS – 0740) Practical Collection pbootcms Template

A responsive PbootCMS website template source code for foreign language schools and universities, supporting mobile access. The design style is tailored for international education institutions, making it ideal for foreign language universities and international schools to showcase their teaching environments and admissions information. This template helps educational institutions attract domestic and international students online. Template Demo | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn...
👁 63
How does python package and run on Windows?

How does python package and run on Windows? Language Notes python

The most common way to package and run Python programs on Windows is to use PyInstaller. PyInstaller is a free and cross-platform Python application packaging tool, which can package Python code and its dependent libraries into an independent executable file, making it possible to run Python programs on systems without Python interpreters installed. The following is to make …
👁 300
Geothermal Water Diversion System Website Template 0875

Geothermal Water Diversion System Website Template 0875 Practical Collection Yiyou template

This EyouCMS template is ideal for companies specializing in geothermal water distribution systems. Its professional, tech-oriented design effectively showcases water distribution products, underfloor heating systems, and related engineering applications. It enables HVAC equipment manufacturers to showcase their products online and attract both commercial and residential clients. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (Eyou...
👁 36
(Adaptive mobile version) HTML5 responsive corporate website template for toy wholesale and manufacturing companies (pbootCMS); Download toy and recreational facility website source code – 0741

(Adaptive mobile version) HTML5 responsive corporate website template for toy wholesale and manufacturing companies (pbootCMS); Download toy and recreational facility website source code – 0741 Practical Collection pbootcms Template

A responsive PbootCMS corporate website template designed for wholesale toy manufacturing businesses for children's play areas, compatible with both PC and WAP devices. Its lively, child-friendly design is ideal for showcasing playground facilities, toy products, and brand stories. This template helps children's play area operators or toy manufacturers attract family customers and distributors online. Template Preview | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: ww...
👁 43
What programming software is good for python development?

What programming software is good for python development? Language Notes python

There are many programming softwares developed by Python. The following are some commonly used Python integrated development environments (IDE) and editors: PyCharmPyCharm is an integrated development environment developed by JetBrains, which is specially designed for Python developers. PyCharm is powerful and provides a series of advanced functions such as code completion, debugging, version control, code refactoring, etc., which can help developers improve their work …
👁 175
Acoustic Insulation Decoration Engineering Company Website Template 0876

Acoustic Insulation Decoration Engineering Company Website Template 0876 Practical Collection Yiyou template

An eYouCMS website template designed for acoustic, sound insulation, and decorative engineering firms. Its professional, tech-driven design enables effective presentation of acoustic materials, sound insulation project cases, and technical solutions. This template helps acoustic and decorative engineering companies showcase their technical expertise online and attract clients from the construction and venue development sectors. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for eYouCMS...
👁 50