Skip to content

Cache doesn't clear when ACF Options page is updated #404

@dmpinder

Description

@dmpinder

ACF Pro allows us to create an Options page, but when this page is updated the Rocket cache isn't cleared. It can be done with a simple function (my workaround is below) but would be good to see this in the plugin.

add_action('acf/save_post', 'clear_cache_on_options_save');
function clear_cache_on_options_save($post_id) {
    if ($post_id == 'options') {
        rocket_clean_domain();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowIssues that can waittype: enhancementImprovements that slightly enhance existing functionality and are fast to implement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions