AdvancedCustomFields / AdvancedCustomFields/acf

Resave blocks to migrate from 5.11 to higher (pro and regular acf)

Open
#758 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Hi!

After updating a few of our older sites from 5.11 to higher, we noticed the first initial loads are still ajax loading every single block one after the other like it was before. This is a huge performance issue for us as we're having to go through all the blocks and trigger saves manually because after talking to pro support a bit about this, we've been told that we should re-save the posts to trigger the new markup that uses the new performance optimizations.

I've searched to find out if there's a way to automate this but it doesn't seem like there is (re-saving all the posts with wp-cli and dummy values to try and trigger post_save hooks for example), my suspicion is that it's because the client-side gutenberg block editor is the one applying the changes and not the PHP code.

Can someone point me out to the better solution to do this if not opening all tabs and saving them manually?

Thanks a lot.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by investigating the WP-CLI resave approach, the post_save hooks, and the client-side Gutenberg block editor behavior described in the report. Determine whether an automated migration can trigger the required markup changes without opening and saving each post; done means older posts no longer require manual resaving to receive the performance optimizations.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, content
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.