You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
We count words on
wp_insert_post
hook, which includes doingdo_blocks ( do_shortcodes ( $content ) )
,wp_strip_all_tags
and thenstr_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.The text was updated successfully, but these errors were encountered: