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

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

Open
ilicfilip opened this issue Oct 10, 2024 · 0 comments
Open

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

ilicfilip opened this issue Oct 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ilicfilip
Copy link
Collaborator

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.

@ilicfilip ilicfilip added the enhancement New feature or request label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant