Notifications
Clear all

Hashed IP Checking Issue

3 Posts
2 Users
0 Reactions
1,587 Views
(@dkappelman)
New Member
Joined: 8 years ago
Posts: 3
Topic starter  

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.


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4209
 

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)
New Member
Joined: 8 years ago
Posts: 3
Topic starter  

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


   
ReplyQuote
Share:
Scroll to top