Home Forums Bug Reports Sync bug – fields sync themselves


Sync bug – fields sync themselves

  • This is happening in ACF Pro 5.8.8 and 5.8.9

    On a local development website, I added a new custom field to a custom field group and saved it. Then I uploaded the .json file to a staging website.

    The new field was shown when editing pages even though I hadn’t run the “sync” yet.
    When editing the actual custom field group (on staging), the new field was not shown until after I had run sync.

  • Syncing is to sync the database with the json file, not the other way round. If a JSON version of the field group exists this will always be used everywhere except when editing the field group in the admin.

    The only purpose of the syncing is to update the field group so you can edit it without destroying changes in the existing JSON file.

    The field group does not even need to exist in the database on the staging site. You could delete all of the field groups from the staging site through ACF and then upload all of the json files from the local dev site. The db version on the staging site is unnecessary overhead if you don’t plan on editing them there.

  • Ah ok, that makes sense.

    Thanks for the clarification!

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

The topic ‘Sync bug – fields sync themselves’ is closed to new replies.