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 🙂