A solution I have used in a similar case was to run the fields loop once and then output the HTML from the loop to an option of it’s own in the DB. Next time the page is ran if the page saved date is not newer then the option save date then the HTML is taken from the HTML option in the DB.
The data can be grabbed in the add_action(‘acf/save_post’);
This results in one call to the DB if the post has not been altered.
Hope this helps
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Clients need flexibility. Developers need a repeatable workflow that doesn’t have a steep learning curve. See how digital marketing agency Noiza found both with Advanced Custom Fields in our latest case study.https://t.co/BxQAy6COJt