Support

Account

Home Forums Add-ons Repeater Field Flexible content/repeater performance – have_rows() vs foreach loop

Solved

Flexible content/repeater performance – have_rows() vs foreach loop

  • Which approach for looping layouts/repeaters are best for front end performance – using have_rows() or loop through an array with foreach()?

  • It should not make any difference. ACF loads all values for all of the fields in all of the layouts when you do get_field('flex_field') or on the first occurrence of have_rows('flex_field') and caches all of the values.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.