For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > April 2005 > RE: [SMARTY] caching files and sessions









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [SMARTY] caching files and sessions
Ashley Etchell :: Mtracking

2005-04-18, 8:59 pm

Well, Ive upgraded to the latest version and checked values such as
$force_compile and everything seems to be working now. Thanks to everyone
for the pointers and information


To answer this question that was posed...
' Why do you use a template framework to cache of large DB queries? Why not
use for example http://pear.php.net/package/Cache'


I needed a template engine for the site and smarty seemed right because of
its flexability, power and rich features, the caching came as a bit of a
bonus at first but doe to the nature of most of the pages on the site ive
created (site visitor analysis reports) the caching will become a god send
as it saves the db servers from taking a hit every time a client runs a
report for a historic period, at present some reports can take upto 5
minutes to generate (MySQL) the caching is great as many users on an account
will want to view these reports at separate times, caching them saves my db
servers and also presents the reports in less than 1 second, as opposed to 5
minutes!


Cheers
Ash

-----Original Message-----
From: Monte Ohrt [mailto:monte@newdigitalgroup.com]
Sent: 18 April 2005 20:26
To: Yuri Weseman
Cc: ash@mtracking.com; smarty-general@lists.php.net
Subject: Re: [SMARTY] caching files and sessions

Smarty uses built-in caching features handle things such as leaving some
components uncached and handling caches by group. You can also use third
party cache solutions as an all-inclusive page cache (which would avoid
loading smarty/application libs altogether) if you wish.

Yuri Weseman wrote:

>Just wondering... Why do you use a template framework to cache of large DB
>queries? Why not use for example http://pear.php.net/package/Cache
>
>Greetings,
>
>Yuri
>
>
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com