• Just installed this plugin and it works great.

    I noticed the first time I went to view the posts list it took about 1 minute to load the page. Does it pre-calculate the word count for each post?

    It’s not as bad now, but there still seems to be a slight delay while it loads the post list. We have 1000’s of posts. Can anything be done to speed it up?

    Thanks,

    Chris.

    https://ww.wp.xz.cn/plugins/post-admin-word-count/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pixelkicks

    (@pixelkicks)

    Further to this, I’ve actually just uninstalled the plugin because the word counts were wrong!

    The word count given was about 20-30% higher than the real word count shown when editing a post.

    Why is this?

    Plugin Author Jon Bishop

    (@jonbishop)

    The first load takes forever because it is literally going through all of yours posts and calculating the number of words in each. As it calculates it saves the number in hidden post meta so it doesn’t need to recalculate again in the future. It only recalculates when the post post_modified data is greater than when the last time word counts were calculated and saved.

    I’ve experimented with other methods of calculating and caching however the first load still ends up taking a long time and now I’ve added bloat to other parts of the wp-admin.

    As far as how the word count is calculated I’m using the following PHP function str_word_count.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Slows down the posts page’ is closed to new replies.