Integrating Redis Object Cache into custom WordPress Plugin #50
-
I've got a WordPress plugin I've been working on, and it's using Basically, I want to check if there's cached data before hitting the database, especially when I'm pulling records from my custom table (i.e. Also, I'm a bit unsure about whether to check Redis or the Any insights on that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey! If you use That means you can implement your own caching layer using the I hope that helps. |
Beta Was this translation helpful? Give feedback.
Hey!
If you use
wpdb
directly, then there is no caching. Only top-level functionsget_posts()
will use caching.That means you can implement your own caching layer using the
wp_cache_*()
functions.I hope that helps.