Configure cache correctly
-
Good morning,
I would use the plugin, but I have read that if you use it incorrectly, for example, access data and other problematic content become public.
Can you please help me with this?
Thank you and best regards Carsten
-
It’s mainly about Woocommerce
The only important things is don’t toggle the cache on and off willy nilly in production, ideally just leave it on.
If you must disable it temporarily, it’s crucial that the cache is flushed right after disabling the cache drop-in it to avoid stale data in the cache.
Object Cache Pro does all of that for you, Redis Object Cache tries to but isn’t as bulletproof.
Good morning Till,
many thanks for your response. Where is the easiest place to send you a message?
Thank you and best regards Carsten
Via the little chat box on objectcache.pro 👍
Good morning,
I would like to use the free version first to test it.
Is it enough to add the following line to wp-config.php?
define( ‘WP_CACHE_KEY_SALT’, ‘euergeheimerkey:’ );
And are special characters allowed in the password?
Thank you and best regards Carsten
Configuring Redis Object Cache is more complicated than that. It’s best to follow the installation instructions and configuration guide: https://github.com/rhubarbgroup/redis-cache/blob/develop/README.md
Thanks for the link. Unfortunately, since I’m not an expert, I activated the standard settings.
Status: Verbunden
Dateisystem: Beschreibbar
Redis: Erreichbar
Schlüssel-Präfix:
Verbindung
Client: PhpRedis (v6.0.2)
Host: 127.0.0.1
Port: 6379
Datenbank: 0
Verbindungs-Timeout: 1s
Lese-Timeout: 1s
Redis-Version: 3.2.12Many greetings Carsten
Here is some more data:
Status: Verbunden Client: PhpRedis (v6.0.2) Drop-in: Valid Disabled: No Ping: 1 Errors: [] PhpRedis: 6.0.2 Relay: Not loaded Predis: 2.1.2 Credis: Not loaded PHP Version: 8.1.27 Plugin Version: 2.5.1 Redis Version: 3.2.12 Multisite: No Metrics: Enabled Metrics recorded: 1750 Filesystem: Writable Global Prefix: "wp" Blog Prefix: "wp" Timeout: 1 Read Timeout: 1 Retry Interval: WP_REDIS_PREFIX: "4U" WP_CACHE_KEY_SALT: "4U" WP_REDIS_PLUGIN_PATH: "/var/www/vhosts/wp.de/httpdocs/wp/wp-content/plugins/redis-cache" Global Groups: [ "blog-details", "blog-id-cache", "blog-lookup", "global-posts", "networks", "rss", "sites", "site-details", "site-lookup", "site-options", "site-transient", "users", "useremail", "userlogins", "usermeta", "user_meta", "userslugs", "redis-cache", "blog_meta", "network-queries", "site-queries", "user-queries", "code_snippets" ] Ignored Groups: [ "counts", "plugins", "theme_json", "themes", "itsec-lockouts" ] Unflushable Groups: [] Groups Types: { "blog-details": "global", "blog-id-cache": "global", "blog-lookup": "global", "global-posts": "global", "networks": "global", "rss": "global", "sites": "global", "site-details": "global", "site-lookup": "global", "site-options": "global", "site-transient": "global", "users": "global", "useremail": "global", "userlogins": "global", "usermeta": "global", "user_meta": "global", "userslugs": "global", "redis-cache": "global", "blog_meta": "global", "network-queries": "global", "site-queries": "global", "user-queries": "global", "counts": "ignored", "plugins": "ignored", "theme_json": "ignored", "code_snippets": "global", "themes": "ignored", "itsec-lockouts": "ignored" } Drop-ins: [ "advanced-cache.php v by ", "maintenance.php v by ", "Redis Object Cache Drop-In v2.5.1 by Till Krüss" ]I’m mainly concerned with Woocommerce
Status: Verbundenist alles was du brauchst.Falls du mehr als eine WordPress Installation auf dem selben Server hast, dann musst du für jede Seite eine andere
WP_REDIS_DATABASENummer verwenden.Unfortunately, it is actually web hosting
The topic ‘Configure cache correctly’ is closed to new replies.