Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk editing posts is painfully slow #519

Open
2 tasks done
ivptr opened this issue Aug 7, 2023 · 4 comments
Open
2 tasks done

Bulk editing posts is painfully slow #519

ivptr opened this issue Aug 7, 2023 · 4 comments

Comments

@ivptr
Copy link

ivptr commented Aug 7, 2023

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the plugin and it is still present.

WordPress version

6.2.2

Cloudflare-WordPress version

4.12.2

PHP version

8.0

Expected result

Clear cache for all posts in a single API call.

Actual result

Clearing cache using dozens of API calls.

Steps to reproduce

  1. Visit /wp-admin/edit.php
  2. Select several posts from the list using the checkboxes on the left.
  3. Select Edit from the Bulk Actions drop-down menu and click the Apply button.
  4. Change any field, e.g. make posts Sticky
  5. Click Update

Additional factoids

CF\WordPress\Hooks::purgeCacheOnPostStatusChange function takes 2-3 seconds.

So when bulk editing 10 posts, updating takes 20-30 seconds, because there are 10 API calls involved.

References

No response

Copy link

github-actions bot commented Feb 4, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Feb 4, 2024
@ivptr
Copy link
Author

ivptr commented Feb 4, 2024

It's still the same in version 4.12.4.

@github-actions github-actions bot removed the Stale label Feb 5, 2024
Copy link

github-actions bot commented Aug 3, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Aug 3, 2024
@ivptr
Copy link
Author

ivptr commented Aug 26, 2024

Having the same issue with version 4.12.8.

@github-actions github-actions bot removed the Stale label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant