RE: [SMARTY] best looking smarty dev'd sites

From: Date: Wed, 26 Feb 2003 00:16:11 +0000
Subject: RE: [SMARTY] best looking smarty dev'd sites
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8203@lists.php.net to get a copy of this message
Le mar 25/02/2003 à 22:55, Monte Ohrt a écrit : > Coolness. I know MySQL 4.X has query caching features that can do > basically the same thing. As for Smarty config files, they are compiled > to PHP scripts so this method is quite quick too, especially if you have > a PHP accelerator that holds the script byte code in shared memory. Hi, ADOdb supports caching of recordsets http://php.weblogs.com/ADODB http://php.weblogs.com/ADOdb_manual Dixit John Lim "ADOdb is possibly the fastest database library for PHP. We are twice as fast as PEAR DB, 10% faster than PhpLib." Regards. > Monte > > On Tue, 2003-02-25 at 15:34, Steve wrote: > > I do the same type of thing with the settings. Only I put them in a > > database table. Each variable can have template or script scope - or both. > > So, if the record has a var value of pagesize and a scope of both there is a > > variable available to every page and template called $pagesize. These > > values don't change often. So, I store them in a shared memory segment that > > is initialized whenever the page is accessed the first time after a server > > restart, or whenever a setting changes. This has huge performance > > improvements because the settings are only loaded from the database on those > > two occassions. Works quite well. > > > > I also use the shared memory for other data structures that are build from > > expensive database queries. When these data structures rarely change, but > > are dynamically generated from data in the database, the shared memory is a > > great way to "cache" it while still having the variables available. > > > > > > -----Original Message----- > > From: Monte Ohrt [mailto:monte@ispi.net] > > Sent: Tuesday, February 25, 2003 12:54 PM > > To: Hoffman, Geoffrey > > Cc: Smarty General > > Subject: RE: [SMARTY] best looking smarty dev'd sites > > > > > > We have hundreds of sites running on Smarty, but here's a select few. > > They all run the same software suite each with a custom look & feel. > > Smarty enables us to give our clients 100% control of their site > > presentation without any direct access to PHP or the applications. An > > interesting bit of info: Smarty config files are handy for giving > > clients limited control of application behavior that affects > > presentation, such as how many articles to show in a "recent article" > > module, how many records to show in paginated search results, etc. This > > way each theme you install can have custom application behaviors, all > > managed from a config file. > > > > Monte > > > > http://www.thevistaonline.com/ > > http://www.reportermag.com/ > > http://www.dailynebraskan.com/ > > > > > > On Tue, 2003-02-25 at 12:04, Hoffman, Geoffrey wrote: > > > Chiming in late on this - I was out of the office - now catching up. The > > > others in the thread are all quite nice. > > > > > > http://eastvalleytribune.com > > > > > > Best- > > > Geoff > > > > > > -- > > Smarty General Mailing List (http://smarty.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > -- > Monte Ohrt <monte@ispi.net> > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Jean-Michel Juzan jmjuzan@ecreasol.ch Direction Informations & Technologies eCreaSol - NetWork Creative Solutions SARL - http://www.ecreasol.ch/ PGP public keys server : http://www.keyserver.net

Attachment: [application/pgp-signature] signature.asc
« previous php.smarty.general (#8203) next »