Reply to Re: [SMARTY] Caching issues with 2.6.10 under PHP 5

Your name:

Reply:


Posted by "messju mohr" on 10/14/05 10:39

On Fri, Oct 14, 2005 at 09:07:18AM +0200, pbaker wrote:
> Hi,
> I use PHP 5.0.5, Smarty 2.6.10. I have problem (like U) but
> only if I try this:
> if ($smarty->is_cached('file.tpl')) $smarty->display('file.tpl');

works for me.

> in my $smarty->cache_dir exists compiled tamplate.

the *compiled template* should be in your *$smarty->compile_dir* in
your *$smarty->cache_dir* should be the *cached content*. please learn
about the difference.

> Best regards,
> pbaker
>
>
>
> > Hi, I'm in the process of migrating a site which uses Smarty to PHP
> > 5, and I'm having some trouble with caching. If Smarty reports that
> > the requested template is cached, the script calls $smarty->display()
> > without doing all it's processing. But it seems that Smarty tries to
> > run the compiled template anyways, which then dies because it doesn't
> > have any data set. Everything works if I disable caching.
>
> > Everything worked fine under PHP 4.3.11. Are there known issues with
> > Smarty under PHP 5?
>
> > --
> > Ian Eure
> > Developer,
> > eNotes.com LLC
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация