Skip to content

Plugin slows down saving posts in admin panel #520

@ivptr

Description

@ivptr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions