Hello,
I have problem with performace of my webiste. I use ACF PRO and I have a lot of queries – 172. How I can reduce count of queries?
Please look this: https://zapodaj.net/images/948a0320ac34b.png
Thank you in advance for your help!
Hi @m-gbiorczyk
The best thing to do is to use a caching plugin. That way your site won’t need to get the data from your database every time the page is loaded. Please take a look at this thread to learn more about it: https://support.advancedcustomfields.com/forums/topic/performance-issues-with-hundreds-of-queries/.
Thanks 🙂
Thanks for answer.
There is no other solution? Is locale JSON works in ACF PRO?
Hi @m-gbiorczyk
The Local JSON works with ACF PRO, but it will only reduce the query to get the custom fields’ options, not the custom fields’ value. You can try it if you want. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/local-json/.
I hope this makes sense 🙂
Hi @m-gbiorczyk ,
Thanks for getting back to me.
Kindly ensure that the path truly exists.
NOTE: The path should read from an existing folders in your site where the json files are saved.
I have this directory in main folder of theme. Inside, there are no files.
Hi @m-gbiorczyk
Please keep in mind that the Local JSON files will be created when you saved the field group. Could you please resave your field groups and see if ACF creates the Local JSON files?
If that doesn’t work, could you please try it with the default directory name (acf-json
).
If still no joy, please make sure that your local server has the permission to create the files in that folder.
Thanks 🙂
The topic ‘A lot of queries’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.