I love this mod, but it takes a toll on my site's performance.
All other DBTech mods are so good with caching and speed, so I decided to investigate what's up with this one specifically. I found the culprit to be the following hook:
Global Initialisation in global_bootstrap_init_complete
Which calls this file:
/dbtech/thanks/hooks/global_start.php
Which in turn calls /dbtech/thanks/includes/class_core.php (for THANKS::init($vbulletin))
In class_core.php, under the function
public static function init($vbulletin), if I comment out the following line:
Code:
self::_getPermissions();
And test my website, page load times drop .1 - .3 seconds, consistently. This may not seem like a lot, but under heavy load, it makes a huge difference.
Because this is a global hook, it causes slowness
across the entire website, even pages that don't have any Thanks / Likes logic on them.
Of course, I can't actually leave this line commented out because I'm sure it's important.
So I would ask if there's anything we can do to optimize this, considering it's global?
I also have User Tagging installed, and I tested the same with that. The Global Initialisation for that has no impact on performance. I can disable the entire mod and the site is the same speed. the getPermissions function is identical to the Thanks / Likes getPermissions function.
So what specifically about Global Initialisation and getPermissions for Thanks / Likes is slowing things down?
Note: This testing was done on my QA environment, which is 100% vanilla vBulletin 4.2.2 with no other mods installed.
Thanks!