Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Duplicate Queries

$
0
0

Replies: 0

Hi Gioni,

for development for my own plugin I’m using Query Monitor. It also shows duplicate queries and there are some in your plugin. Are they really necessary?

Here the output of Query Monitor on my blogs homepage/startpage:

Duplicate Queries

Query

SELECT tag
FROM cerber_acl
WHERE ip_long_begin <= XXXXXXXXXX
AND XXXXXXXXXX <= ip_long_end

Count
3
Callers
cerber_acl_check()
3 calls
Components
Plugin: wp-cerber
3 calls
Potential Troublemakers
WP_Cerber->__construct()
1 call
cerber_is_allowed()
1 call
cerber_access_control()
1 call

Query

SELECT count(ip)
FROM cerber_blocks
WHERE ip = "XXX.XXX.XXX.XXX"
OR ip = "XXX.XXX.XXX.*"

Count
2
Callers
cerber_block_check()
2 calls
Components
Plugin: wp-cerber
2 calls
Potential Troublemakers
cerber_is_allowed()
1 call
cerber_access_control()
1 call

Bye,
Andreas


Viewing all articles
Browse latest Browse all 67836

Trending Articles