Quote:
Originally Posted by NeverBored
Damn, I'm late to the party with a feature request... I would like to be able to use if conditionals in the container HTML and replacement HTML boxes... Would that add any strain on performance?
Anyhow, cool to see you've updated this mod. It's a great mod, and my site is more or less actually built around it. Your work is appreciated.
|
Just a quick update to say that, I just tested this out. Its pretty easy to implement and I will most likely do it, however the key problem with putting conditionals in is that postbit contents get cached once they are parsed. So say for instance you wanted to show a container for logged in users, but just the URL for non logged in users. If the first person to view it is a logged in user, then the conditional wont be run again until it expires from the cache and the next person views it. There are other ways to do this, just not really ideal with a conditional.
I could most likely force AME'ed posts to bypass the cache, but I don't think the performance trade off is worth it.
So...
I will most likely be switching to templates in the future as they give a lot better flexibility but you would have to be mindful of the cache for conditionals.