![]() |
CES Intelligent Attachment Query
CES Intelligent Attachment Query
Version: 1.3.0 Version 1.3.0 has no real changes other than now being a product. Now requires CES Pre-Process Hooks. *** NEWS *** 3/25/2007 - v1.3.0 (product version) released ------------------------------------------------------ 1/28/2007 - v3.0.0 released 1/27/2007 - v1.0.0, v2.0.0, v2.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 What It Does: Normally showthread wastes a query on attachments by checking if the thread has an attachment in any post, not bothering to check if that post and attachment are even on the current page, then querying for the page's posts. This hack removes a potentially unnecessary query from showthread.php by joining queries. I hope someone from Jelsoft sees this thread. Mod Features: - removes 1 pointless query Products to Install: 1 Plugins Included: 2 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.3.0: - only 1 file edit - requires CES Pre-Process Hooks - uses vBulletin's Plugin system - changed version numbering (confusion!) |
saved a copy of showthread, edited it, and copied over.....
least the boards still running....cant say ive noticed the saved query tho?? |
The query is only saved if there is an attachment anywhere in the thread and not on the page.
vBulletin by default will make a query in that situation. So in normal forum/showthread use, you would not notice a drop in queries. |
I uploaded version 2.0 which completely eliminates 1 query from showthread.php (even on the pages with attachments) if there is an attachment somewhere in the thread.
|
Forgive my stupidity, but I have to wonder if the one-less query makes up for all the new commands processed in showthread... :confused:
|
I get errors:
Code:
Database error in vBulletin 3.6.4: This was a thread that didn't have any attachments. I've reverted back for now. |
|
It's because there's a comma missing. This problem was fixed in version 3.0.0.
|
Quote:
|
Trying again... I'll post back with my results in a bit.
|
All times are GMT. The time now is 05:24 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|