Home › Forums › ACF PRO › acf_form 'acf/save_post' performance › Reply To: acf_form 'acf/save_post' performance
My question would be, why are you calling update_post_meta() for every field on the acf_form(). because you are using an acf/save_post filter ACF has already save these values somewhere. If you are then saving the values somewhere else as well then you are doubling the amount of DB queries that need to be performed.
It really does not matter if you do this in one function or multiple functions, the result will be pretty much the same. It’s not the number of functions that need to be called, this will hardly effect performance unless you have thousands of filters.
Maybe you should explain why you’re doing all of these DB updates and maybe there is a better way.
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.