Hi sheepy,
And thanks for the input. I wasn't too concerned about speed.
My site gets 30/s hits so this should not be a problem. Especially if I use caching.
I use a lot of includes is because we have a lot of repeating content on the site - menu's and such.
What I was thinking was for instance:
Our main menu is quite complex with submerges, bells and whistles :)
What I was suggesting was to cache the menu template one separately. So that it would always look the same on all sites (no matter when the page is cached) and also would not need to be merged every time a non-cached page gets hit.
In that way I could have cached elements on the site together with on the fly merges.
I don't know if this makes sense to you, but at the moment it does to me :)
Maybe a feature request could be to have something like:
$__tbs->MergeBlock('block',Source [,Query[,(bool) cache=true]);
|
so that if cache is set to false the merge would be done, but the cached file would still include the tbs block and need to be merged on future hits.
I don't know if this would be to complex to do, I might very well be.
Maybe it would be best to separate it out into its own plug-in?
Just some thoughts, feel free to flame :)