The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
CES Intelligent Postbit Query Details »» | |||||||||||||||||||||||||
CES Intelligent Postbit Query
Version: 1.0.1 This hack is now used as a troubleshooting tool for members with unusually high queries on showthread. You do not need to install this unless your queries peak around 20 or higher. Note that if after installing this you experience a drop in queries, it means you have a bad plugin installed. Leaving this installed, while this does not hurt your forum at all, does not solve your query problem - it only now hides it. To disable the tool, you only need to change the line: PHP Code:
PHP Code:
For those without success (i.e. it doesn't seem to make a difference), please don't uninstall, but help us determine what is different in your case. PHP version, MySQL version, hacks installed, PHP cache, etc. would all be useful information. Thanks! *** NEWS *** This section has become a list of bad plugins. Often these plugins can be optimized by a rewrite using a different hook, and thus not causing this query issue. Product: Username Management Hook Location: postbit_factory Bad Plugin: Add Username history to postbit(legacy) 1/28/2007 - v1.0.0, v1.0.1 released I actually came across this while trying to reduce queries in my CES Site News mod which uses a customized showthread.php. Known Issues: - NONE - Some users see an amazing improvement, others do not see a difference in query count for some time, while still others don't see any difference at all. It all depends on your server setup and your current vBulletin installation (settings, other mods, etc). This hack is still young (1 day) so we haven't narrowed down what causes these differences in success. - If you are still experiencing the stolen signatures issue, you need to clear your sig_cache. Do this by going to AdminCP -> Maintenance -> Update Counters -> Empty Signature Cache. What It Does: On some installations showthread wastes 1 query per post in showthread.php when creating the postbits. You can tell if this applies to your installation if you approach or exceed 20 queries on a page of only 10 or so posts. By adding these 4 lines, showthread checks to see if it already has created the appropriate Postbit Factory object instead of doing it all over again. Queries on showthread are thus DRASTICALLY reduced (1 per post), even though the code reveals no direct database references. This can be a HUGE performance boost. I hope someone from Jelsoft sees this thread... Mod Features: - removes multiple pointless queries Products to Install: 0 Plugins Included: 0 Files to Upload: 0 Files to Edit: 1 New Templates: 0 Template Edits: 0 Queries Added*: -1 *See "What It Does" for details. *** Changelog *** As of Version 1.0.1: - fixed bug where posts would "steal" signatures from each other Special thanks to TheFrienzNet for his help ^_^ Show Your Support
|
Comments |
#22
|
|||
|
|||
Thanks - trying it out now
Edit: I'm getting the same bug as well - signatures messing up. I'm not exactly sure why but it seems that there's no difference. 10 queries per page with or without this hack (10 posts per page as well) - or at least that's what I'm getting from the Microstats. |
#23
|
|||
|
|||
I had sigs turned off on my forum while testing this yesterday so I didn't notice. I will look into this issue.
Quote:
|
#24
|
||||
|
||||
Thanks thincom2000, but could you do it fast? I know I sound like a jerk but there are over 9,000 signatures messed up and my higher ranked bosses will be mad at me..
*Edit* I got it fixed! In order to fix it, you must do 'Empty Signature Cache' in Maintenance! Thincom2000, I guess you have to update the readme. *ReEdit* Okay, I did that 'Empty Signature cache' but it worked only for a few minutes, after that it got messed up again. At the meantime, I will change the line back to what it was and run that 'Empty Signature Cache' maintenance script. Thank you Thincom2000. |
#25
|
|||
|
|||
I have this line twice:
$postbit_obj =& $postbit_factory->fetch_postbit($fetchtype); Replace both like the lines in the .txt file? |
#26
|
||||
|
||||
Yes, if you want. One line is for hybrid mode and the normal view, but it's better doing it anyways. However, it's bugged, your user's signatures will be messed up.
|
#27
|
|||
|
|||
Installed :up:
|
#28
|
||||
|
||||
You will experience a few bugs with users signatures. So I don't recommend it, yet.
|
#29
|
|||
|
|||
Just turned them back on and I am not experiencing any issues with my user's signatures.
Looks like I'm going to need more info from you guys. What usergroups are experiencing this problem? What permissions do they have? Do you have any sig-modifying hacks installed? Where signatures messed up on new posts or old ones? |
#30
|
|||
|
|||
From what I can tell, if this affects one usergroup, it should affect them all, however, I first noticed it with Registered Users. I'm not certain if anyone else is being effected because I had to revert the changes - users were starting to complain about how someone "stole" their signature.
The Registered Users have set signature permissions as follows: Can Use Signatures: Yes Maximum Characters in Signature Including BBCode Markup: 550 Maximum Characters in Signature Excluding BBCode Markup: 450 Maximum Lines in Signature: 8 Allow BB Code: Yes Allow Basic BBCode: Yes Allow Color BBCode: Yes Allow Size BBCode: Yes Maximum Value of x for SIZE=x BBCode: 5 Allow Font BBCode: Yes Allow Alignment BBCode: Yes Allow List BBCode: Yes Allow Link BBCode: Yes Allow Code BBCode: Yes Allow PHP BBCode: No Allow HTML BBCode: No Allow Quote BBCode: Yes Allow IMG Code: Yes Maximum Number of Images in Signature: 8 Allow Smilies: Yes Allow HTML: No The only signature hack that I have is one that modifies the modifysignature template. If I'm thinking clearly, that only modifies the UserCP "Edit Signature" jazz. The hack that I have for it is the "Custom Sig Permissions Display" - for reference. The first time I noticed this bug was at the first post of a thread - the first poster's signature was copied to the second poster's signature area. It was a total overwrite, not an addition. I looked to see if that was consistent, however, I didn't come across another instance like it before I went to revert the file. Edit: Also, I think you might have to have several members and several posts in a thread for this bug to appear - just a guess. Edit 2: As a note, I've had the file reverted for about 15 minutes (at least) and I'm still getting only 10 queries on a thread with 10 posts per page. I'm not sure this hack had an effect or not. :? |
#31
|
|||
|
|||
Hello,
It seems to mess signatures. After installing this, some posts had the signature of another user. Reverting the patch fixed it. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|