Post views crashing our website

Posted in: Newspaper
Post count: 21

Hello,

We have 500 – 1500 users at same time on website.

Post views counter is crashing or website when enabled. We use dedicated server.

Are there any limit we should enable?

PHP Version
7.4.15
WP Memory Limit
256 MB
PHP Execution Time
120
PHP Max Input Vars
2000

Also what about that WP post views plugin. Which plugin is that? This one https://wordpress.org/plugins/wp-post-views/ ?

But website crash as soon as we enable post views so probably not even plugin is suitable for us.

Thank you

Post count: 9544

I think we have execution time to 300 and max input at 3000 on our server.
You cannot run the postviews plugin same time as having show post views on in theme. You end up double dipping those queries; and get second data field as that plugin uses “views” while tagdiv does “something_views” if I remember.
(I don’t work here.)

Post count: 27744

Hello,

Please try to disable this option https://prnt.sc/VLFsGYKbWI4c and check after how it works.

Thank you!

Post count: 21

But when disabled it doesnt count views.

Chris thanks for advice, so what could be the solution? It showing views and counting even possible with high traffic website and newspaper?

Post count: 9544

Heh. Well, we’re old, and using WordPress since 2004.
In our case we have couple of high traffic sites, one online since 2000 as a newwire service.

For the Tagdiv sites, we actually have WP-PostViews installed, but not active, as this generated a custom field “views” and then we hack the views file in td-composer to change the TD views field to “views”. We then use the TD counter, but turn off extraneous things like most popular, popular 7 days, random views, and views are OFF everywhere except the actual posts — not on any modules. (We want to use a custom field “views” so that the counter is evergreen and agnostic and not tied to theme.)

On the other site, we turn off TD views entirely, and use the WP-PostViews plugin and insert the template code at bottom of the main post template file we’re using for posts.

Each of those sites have 768M allocated.

Your mileage may vary. But turning off a lot of “tricky” things visitors don’t really care about will lower your “query load” and that also speeds up the whole site.

  • This reply was modified 1 year by simchris.
Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.