Hashed IP Checking Issue  

  RSS

dkappelman
(@dkappelman)
New Member
Joined: 2 years ago
Posts: 3
09/01/2019 10:16 am  

I run a fairly large blog with 2.7 million votes in the wp_wc_users_voted table.  On the admin page, getNotHashedIPCount is getting run a decent amount and it's slow.  We have caching, but it seems that the cache on that query might be short lived. 

We already hashed all the IP's, so I'm not sure why this is getting called on every single admin page.  There should probably be something in wp_options that indicates whether or not IPs are hashed, and check that instead of checking the entire wp_wc_users_voted table every time.


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2895
10/01/2019 2:00 pm  

Hi @dkappelman,

This issue will be fixed with netion version of wpDiscuz.

At the moment you can do a small manual change in core file to fix it. Please open this file:

/wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php

Find this line:

add_action('admin_notices', array(&$this->helper, 'hashVotesNote'));

Add double slashes on front, like this:

//add_action('admin_notices', array(&$this->helper, 'hashVotesNote'));

 


ReplyQuote
dkappelman
(@dkappelman)
New Member
Joined: 2 years ago
Posts: 3
10/01/2019 7:07 pm  

Thanks tom! I will go ahead and do until the next release.


ReplyQuote
Share: