Home › Forums › General Issues › Default Field Value on an Options Page › Reply To: Default Field Value on an Options Page
I also ran a benchmark because I heard that getting the field by its key will save a database query or two.
The benchmark was a single php function that called get_field()
once. Across 1000 calls, getting the field by its key saved 3 seconds on my machine.
We will start making the field keys human-readable and making all of our get_field() calls with the key.
Cheers!
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.