Force recompile?

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
JPortal
Registered User
Posts: 117
Joined: Sun Nov 28, 2004 10:42 pm

Force recompile?

Post by JPortal »

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.

User avatar
dhn
Registered User
Posts: 1518
Joined: Wed Jul 04, 2001 8:10 am
Location: Around the corner
Contact:

Re: Force recompile?

Post by dhn »

You can activate force recompile in the ACP -> Load Settings:
Recompile stale templates:
Check for updated template files on filesystem and recompile.
So why the moaning? ;)
Image

JPortal
Registered User
Posts: 117
Joined: Sun Nov 28, 2004 10:42 pm

Re: Force recompile?

Post by JPortal »

dhn wrote:You can activate force recompile in the ACP -> Load Settings:
Recompile stale templates:
Check for updated template files on filesystem and recompile.
So why the moaning? ;)
Still, seems kind of pointless. Oh well, at least it's more there than I thought it was. :P

Graham
Registered User
Posts: 1304
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK

Re: Force recompile?

Post by Graham »

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.
"So Long, and Thanks for All the Fish"

Graham
Eeek, a blog!

JPortal
Registered User
Posts: 117
Joined: Sun Nov 28, 2004 10:42 pm

Re: Force recompile?

Post by JPortal »

Graham wrote: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.
Is it just me or is psoTFX going nuts about page generation time? :mrgreen:

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.

Roberdin
Registered User
Posts: 1546
Joined: Wed Apr 09, 2003 8:44 pm
Location: London, United Kingdom

Re: Force recompile?

Post by Roberdin »

0.037 here ;)
Rob

JPortal
Registered User
Posts: 117
Joined: Sun Nov 28, 2004 10:42 pm

Re: Force recompile?

Post by JPortal »

Roberdin wrote:0.037 here ;)
Seems to be getting a lot faster.

This is like, bordering on impossible to be any faster...

Speaking of which, I got 0.035s. Loser!

Yoshi 15
Registered User
Posts: 86
Joined: Sun Jun 29, 2003 10:04 pm

Re: Force recompile?

Post by Yoshi 15 »

0.034 viewing the topic, beat that :P

But, 0.586 for opening the posting page.

Roberdin
Registered User
Posts: 1546
Joined: Wed Apr 09, 2003 8:44 pm
Location: London, United Kingdom

Re: Force recompile?

Post by Roberdin »

0.034... this could get very tiring, very quickly ;)
Rob

JPortal
Registered User
Posts: 117
Joined: Sun Nov 28, 2004 10:42 pm

Re: Force recompile?

Post by JPortal »

The board was disabled this afternoon and I got 0.004s :twisted: :P

Post Reply