wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

Improve Beaver Builder compatibility

Open piotrbak opened this issue 2 years ago • 0 comments

Before submitting an issue please check that you’ve completed the following steps:

  • Made sure you’re on the latest version
  • Used the search feature to ensure that the bug hasn’t been reported before

Describe the bug We're clearing the whole cache when editing any post using Beaver Builder.

To Reproduce Steps to reproduce the behavior:

  1. Install BB and WP Rocket, generate some cache
  2. Add new page and save it using BB
  3. Check the SFTP
  4. All cache is cleared

Expected behavior We should not clear the whole cache when updating single post

Additional context That's because of: https://github.com/wp-media/wp-rocket/blob/b43e4083a2676fd1b946e7e1dfc96564a62fd287/inc/ThirdParty/Plugins/PageBuilder/BeaverBuilder.php#L18 It's triggered on each post update. This is the only place in the BB code where this action exists: https://snippi.com/s/q4i9g0o

I commented out this hook and we partially cleared the cache correctly.

Backlog Grooming (for WP Media dev team use only)

  • [ ] Reproduce the problem
  • [ ] Identify the root cause
  • [ ] Scope a solution
  • [ ] Estimate the effort

piotrbak avatar Aug 03 '22 12:08 piotrbak