Sorry, I don't like this feature.
I've made template systems before, and what I've always done is checked the creation time of the cached file against the time the template was last modified. Works really well, and makes it a lot easier to edit templates. It would also cut down a lot of support questions like "my template changes aren't taking effect!"
I mean really, it would only take one or two lines of code in template.php.
Force recompile?
- dhn
- Registered User
- Posts: 1518
- Joined: Wed Jul 04, 2001 8:10 am
- Location: Around the corner
- Contact:
Re: Force recompile?
You can activate force recompile in the ACP -> Load Settings:

So why the moaning?Recompile stale templates:
Check for updated template files on filesystem and recompile.
Re: Force recompile?
Still, seems kind of pointless. Oh well, at least it's more there than I thought it was.dhn wrote:You can activate force recompile in the ACP -> Load Settings:So why the moaning?Recompile stale templates:
Check for updated template files on filesystem and recompile.![]()
Re: Force recompile?
The fact of where it is should give some indication why it's off by default
Checking the timestamp every time it's used adds slightly to the page generation time and load for something that is unlikely to change much once the template is installed - so you can set it to force checking whilst developing and then turn it off for a live board.
Re: Force recompile?
Is it just me or is psoTFX going nuts about page generation time?Graham wrote:The fact of where it is should give some indication why it's off by defaultChecking the timestamp every time it's used adds slightly to the page generation time and load for something that is unlikely to change much once the template is installed - so you can set it to force checking whilst developing and then turn it off for a live board.
Seriously though, all the new techniques are awesome... I guess every little bit adds up. Or rather, doesn't add up. 0.480 seconds? That's insanse.
Re: Force recompile?
Seems to be getting a lot faster.Roberdin wrote:0.037 here![]()
This is like, bordering on impossible to be any faster...
Speaking of which, I got 0.035s. Loser!
Re: Force recompile?
0.034 viewing the topic, beat that 
But, 0.586 for opening the posting page.
But, 0.586 for opening the posting page.
Re: Force recompile?
The board was disabled this afternoon and I got 0.004s
