Thanks for that little snippet @rivage. I think one can also increase the memory limit overall on the site using different methods such as a constant in wp-config, changing the values in php.ini etc.. It all really depends on the servers configuration and what the server allows or not (many shared hosting solutions doesn’t allow any changes at all).
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users