Re: [SMARTY] Compiled Templates in Database

From: Date: Sun, 17 Nov 2002 19:16:21 +0000
Subject: Re: [SMARTY] Compiled Templates in Database
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6460@lists.php.net to get a copy of this message
A handler to put the compiled scripts into a database table as opposed to a nested filesystem would be handy for those that cannot turn off safe mode...wouldn't it? You can turn off use_subdirs but then all your compiled templates get stored in one big folder...presumably in systems with very large numbers of templates doing an indexed table lookup would be faster? Similarly for the /cache...I use the trick of caching main.tpl based on an MD5 hash of the URI (mainly to get rid of the slashes...). If my content grows very large presumably so will the cache. It might be faster to store the generated HTML in a MySQL table and haul it right out of there rather than from a large filesystem. Plus I wouldn't have to process the URI to remove slashes. Any thoughts on this issue? At what point is it a speed advantage to use a table? ----- Original Message ----- From: "Manfred Stienstra" <manfred.stienstra@dwerg.net> To: <smarty-general@lists.php.net> Sent: Sunday, November 17, 2002 2:11 PM Subject: Re: [SMARTY] Compiled Templates in Database On Sunday 17 November 2002 18:44, Scott Barron wrote: > Does this only work for the items that go in cache/ ? I think Alberto > was asking about compiled templates that go in templates_c/, which would > be very handy. I just set up the cache handler as in the manual, moving > templates_c/ into the database would be perfect. I think I'll poke > around some more. I misunderstood his question and it's almost solved (I hope). The real problem turned out to be safe mode. Manfred -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#6460) next »