Skip to content

Decide if we want to count words during post import process #81

Open
@ilicfilip

Description

We count words on wp_insert_post hook, which includes doing do_blocks ( do_shortcodes ( $content ) ) , wp_strip_all_tags and then str_word_count.

This hook also fires when posts are imported and in case there are a lot of posts (which could also have large content) it could slow down import process significantly or even break it due to PHP's max_execution_time limit.

Currently I am not sure what would be best for us to do here, somehow disable word counting during import process (but there are so many ways to import content) or find a different way to do the word counting.

It came to my mind since I remembered that WP All import plugin has a Increase speed by disabling do_action calls in wp_insert_post during import. checkbox in it's configuration panel.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions