The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Could a lot of conditional overload the server Cpu or make pages loading slowly?
Hi everybody,
I need to insert some affiliate banner into the showthread template using for every thread a specific and different banner. I'm running a large board with a lot of traffic (20.000 unique users a day). I'm inserting a lot of conditional like this Code:
<if condition="$threadinfo['threadid'] == 'XXXX'">banner 1 </if> Consider I need to insert a large number of conditional maybe 400-500. If this method is not good , which is the best? Do you know any modification that could do this ? Thank you , Tintin |
#2
|
|||
|
|||
Every condition that has to be evaluated does impact performance, even if it is only a little. But using many template conditionals like this will for sure have a negative impact.
Better to use a plugin and lookup the banner needed in an array. |
#3
|
|||
|
|||
Thank you Marco for your useful reply.
I'm not a programmer so, does anyone could help me to build a plugin like this? Does anyone knows if a similar modification exist ? I've search and installed some mods, but no one give the possibility to show a specific banner for a specific thread. :-( |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|