![]() |
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:
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 |
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. |
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. :-( |
All times are GMT. The time now is 09:06 AM. |
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:
|