From edi at agharta.de Wed Aug 3 22:44:49 2005 From: edi at agharta.de (Edi Weitz) Date: Thu, 04 Aug 2005 00:44:49 +0200 Subject: [html-template-devel] Re: html-template's caching of included files In-Reply-To: <20050803013527.GR4802@tcp> (Igor Plekhov's message of "Wed, 3 Aug 2005 12:35:27 +1100") References: <20050803013527.GR4802@tcp> Message-ID: [Please send bug reports and questions to the mailing list - see Cc.] Hi! On Wed, 3 Aug 2005 12:35:27 +1100, Igor Plekhov wrote: >> HTML-TEMPLATE maintains a cache of previously created template >> printers. If the (merged) pathname can be found in this cache and >> the file denoted by this pathname hasn't changed since the >> associated cached template printer was created (which is tested by >> FILE-WRITE-DATE) the cached value will be used and no new template >> printer will be created. > > But HTML-TEMPLATE does not check whether files included in the > template have changed. It's a bug. No, it isn't. The docs clearly say that the included file "is implicitely converted into a template printer AT GENERATION TIME." > Also it would be nice to have a feature to completely disable the > cache, so that HTML-TEMPLATE will always regenerate template > printer. It would be useful in a development process. See the documentation for CREATE-TEMPLATE-PRINTER - specifically the :DO-NOT-CACHE keyword. If you're sure you'll never want to use the cache write an :AROUND method for CREATE-TEMPLATE-PRINTER which sets the FORCE parameter accordingly. Cheers, Edi. From penguin at ocean.vvo.ru Fri Aug 5 11:28:12 2005 From: penguin at ocean.vvo.ru (Igor Plekhov) Date: Fri, 5 Aug 2005 22:28:12 +1100 Subject: [html-template-devel] Re: html-template's caching of included files In-Reply-To: References: <20050803013527.GR4802@tcp> Message-ID: <20050805112812.GQ23389@ocean.vvo.ru> On Thu, 04 Aug, 2005 at 00:44:49 +0200, Edi Weitz wrote: > > > But HTML-TEMPLATE does not check whether files included in the > > template have changed. It's a bug. > > No, it isn't. The docs clearly say that the included file "is > implicitely converted into a template printer AT GENERATION TIME." Oh, yes ! But what a sense to check only one of many templates while they all take a part in the template printer generation ? > > Also it would be nice to have a feature to completely disable the > > cache, so that HTML-TEMPLATE will always regenerate template > > printer. It would be useful in a development process. > > See the documentation for CREATE-TEMPLATE-PRINTER - specifically the > :DO-NOT-CACHE keyword. If you're sure you'll never want to use the > cache write an :AROUND method for CREATE-TEMPLATE-PRINTER which sets > the FORCE parameter accordingly. Yes, it is another way. But with a parameter it would be more easily. I am not sure about the cache. -- Registered Linux User #124759 From edi at agharta.de Fri Aug 5 12:12:43 2005 From: edi at agharta.de (Edi Weitz) Date: Fri, 05 Aug 2005 14:12:43 +0200 Subject: [html-template-devel] Re: html-template's caching of included files In-Reply-To: <20050805112812.GQ23389@ocean.vvo.ru> (Igor Plekhov's message of "Fri, 5 Aug 2005 22:28:12 +1100") References: <20050803013527.GR4802@tcp> <20050805112812.GQ23389@ocean.vvo.ru> Message-ID: On Fri, 5 Aug 2005 22:28:12 +1100, Igor Plekhov wrote: > But what a sense to check only one of many templates while they all > take a part in the template printer generation ? This is an optimization for performance. While you're still developing you can disable the cache and as a result the included templates will be reloaded as well. Cheers, Edi. From edi at agharta.de Fri Aug 5 12:40:57 2005 From: edi at agharta.de (Edi Weitz) Date: Fri, 05 Aug 2005 14:40:57 +0200 Subject: [html-template-devel] New version 0.3.1 (Was: html-template's caching of included files) In-Reply-To: <20050805112812.GQ23389@ocean.vvo.ru> (Igor Plekhov's message of "Fri, 5 Aug 2005 22:28:12 +1100") References: <20050803013527.GR4802@tcp> <20050805112812.GQ23389@ocean.vvo.ru> Message-ID: On Fri, 5 Aug 2005 22:28:12 +1100, Igor Plekhov wrote: > Yes, it is another way. But with a parameter it would be more > easily. I've just released a new version (0.3.1) which offers this new setting: ChangeLog: Version 0.3.1 2005-08-05 Introduced *FORCE-DEFAULT* Download: Cheers, Edi.