queries on front page
Reported by marius | November 23rd, 2010 @ 02:15 PM
trying to reduce the number of queries in my website, i found
that on the front page there are lots of queries wp-o-matic
related.
anyone has any idea about how to remove those useless queries? why
is qp-o-matic having queries outside admin area anyway?
Comments and changes to this ticket
-
marius November 27th, 2010 @ 11:06 PM
as i found out is related to pseudo-cron somehow?
but how can pseudo-cron be disabled? -
marius November 28th, 2010 @ 10:50 PM
my bad, it is not pseudo-cron related... it is
filterPermalink
function related somehow.in wpomatic.php there's function filterPermalink($url)
deleting this function will result in 0 queries on the front page, as it should be, but, of course, all title and read-more links will be a mess.deleting the function will return the follwing error on front page.
<b>Warning</b>: call_user_func_array() [<a href='function.call-user-func-array?preview=1&template=theme&stylesheet=css'>function.call-user-func-array</a>]: First argument is expected to be a valid callback, 'WPOMatic::filterPermalink' was given in <b>/home/user/public_html/wp-includes/plugin.php</b> on line <b>166</b><br />
in wp-includes/plugin.php is
$value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));
please help!
-
marius November 29th, 2010 @ 12:04 PM
What I did was to comment out
# Filters add_action('the_permalink', array(&$this, 'filterPermalink'));
So far, so good. It seems is not trying to filter the permalinks anymore and I got read of the wp-o-matic queries on the user side.
One question, for those who understand better then me how things work:
Will this affect in any way the functionality of the website (except the fact that wp-o-matic won't try to check the permalink) ?
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
WP-o-Matic project.