Count shortcode output & cache result
-
First of all, great plugin!
Wouldn’t it make more sense to count the words output by shortcodes since there are page builders out there that actually have text blocks.
My recommendation would be to generate the full output of the content by applying the_content filter than counting the words. We could save the count in a meta value and clear it whenever the post is saved so we can cache the value of rt_calculate_reading_time to further optimize things.
– AJ
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Count shortcode output & cache result’ is closed to new replies.