Duplicate Queries


While using the query monitor plugin I could notice I am making a database query 4 times. I am using OPP. So I have a method that gets me a list of posts by querying the database.
I have to do this 4 times to allow the user to select the post. I am curious if there is any method by which I can store it and use where ever needed? So making it a single query. ( I am actually querying the list of all ACF fields)

, , Latheesh V M Villa 11 months 0 Answers 86 views 0

Leave an answer