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

Plugin slows down saving posts in admin panel #520

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

Plugin slows down saving posts in admin panel #520

ivptr opened this issue Aug 7, 2023 · 6 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

Do not slow down saving posts.

Actual result

Whenever a post is saved, CloudFlare cache is being cleared.

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

Steps to reproduce

  1. Edit any post
  2. Save post

Additional factoids

Proposed solution is to avoid clearing CloudFlare straight away, but schedule it and group all URLs into single API call via cron job.

References

No response

@ivptr
Copy link
Author

ivptr commented Sep 7, 2023

This is addressed in PR #504

@ivptr
Copy link
Author

ivptr commented Nov 2, 2023

Since Cloudflare API is unavailable today, seeing 504 (Gateway Timeout) error in WordPress Admin Dashboard when saving posts.

If we were using cron job to clear cache instead, work in WordPress would not be affected at all.

Copy link

github-actions bot commented May 1, 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 May 1, 2024
@johnange
Copy link

johnange commented May 1, 2024

@aseure did you get a chance to look at this issue, since CF plugin is really slowing down things in admin dashboard?

@github-actions github-actions bot removed the Stale label May 2, 2024
Copy link

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 Oct 29, 2024
@ivptr
Copy link
Author

ivptr commented Nov 2, 2024

Not stale.

@github-actions github-actions bot removed the Stale label Nov 3, 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

2 participants