Advanced Custom Fields (ACF) Options Page Cache Purge for WaaS/MU Subsites

1 min read

The following is another solution from one of our users, shared with the community in the Facebook Group. It will help clear the cache on the ACF options page on WaaS network / multisite installation subsites when changes are made.

You can learn more about the ACF options page here:

Important: This is not our code and it is not supported by GridPane. The responsibility falls on you for its correct testing, implementation, and upkeep.

The custom function:

function clear_nginx_helper_cache() {
add_action('acf/save_post', 'clear_nginx_helper_cache', 20);