Integrating Redis Object Cache into custom WordPress Plugin #50
Answered
by
tillkruss
afzouni
asked this question in
Support (ROC)
|
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? |
Answered by
tillkruss
Feb 12, 2024
Replies: 1 comment 3 replies
|
Hey! If you use That means you can implement your own caching layer using the I hope that helps. |
3 replies
Answer selected by
tillkruss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey!
If you use
wpdbdirectly, 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.