kennysvg
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
When you have some time to spare, please let me know of any other suggestions you may have. If necessary I’ll be able to provide you full access to the site. I appreciate the help.
I added the line you suggested but it didn’t work.
Just as an FYI, this is what the folks over at ubermenu had to say:
the_title is a standard WordPress filter used both in page templates and WordPress menus (including the core WordPress menu). It sounds like the plugin you’re referring to is running a query via the the_title filter. That’s not something that UberMenu can control. The GD Events plugin should make sure it’s only running the query via that filter when it needs to. If their query shouldn’t run on the_title filter in the menu, they should just disable the filter while menus are being processed.
You know I get that you guys are against Ubermenu and I agree completely that it’s a really heavy plugin. I also hear you when you say it can add a bunch of queries to the site, but luckily I’m not exactly a novice and continued to investigate. I thought based on what I said before it would point to a conflict between plugins, and in fact it’s quite minor but explodes in the form of queries.
These two lines were key:
caller: geodir_get_default_package()+
component: Plugin: ubermenuHow does ubermenu trigger a query call from geodir_get_default_package?
Well I realised afterwards that I can expand the caller to see a “stack trace” so to speak. See the screenshots. You guys are the experts so right away you would see what’s wrong.
Both plugins use ‘the_title’ and with filters being applied…
For gd events, line #242 in gdevents_hooks_actions.phpThere is a constant repeat of these two queries:
SELECT pid
FROM wp_geodir_price
WHERE post_type=”SELECT *
FROM wp_geodir_price
WHERE status = ‘1’
AND is_default = ‘1’
AND post_type = ”caller: geodir_get_default_package()+
component: Plugin: ubermenuThank you very much for pointing me to Query Monitor. I’m still going through the data but here’s the thing that jumps out at me so far. A ton of extra queries are being pushed out by ubermenu BUT only when GD Events is activated. That is puzzling.
On the site’s home page:
Without GD Events, total site queries is 106 and ubermenu does 24.
When GD Events is activated, Total site queries is 255 and ubermenu does 168. -
AuthorPosts