PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.smarty.general > Selective caching
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Selective caching

Réponse
 
LinkBack Outils de la discussion
Vieux 18/11/2005, 04h30   #1 (permalink)
Sajith A
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Selective caching

After going through samrty's doc i'm a bit confused about caching. It
would be a great if some one could point me the right way of
doing it.


Suppose i have a page similar to what is given below,
--------------------------------------------------------------------------------------------------
<html>
<head>
<title><{$SITE_TITLE}></title>
</head>
<body>
<div id="menu">
<{include file="includes/menu.tpl"}>
</div>
SATIC CONTENT HERE
</body>
</html>
--------------------------------------------------------------------------------------------------

and if i want to cache this page except the contents of menu.tpl .. is
there a way in smarty to do this. Or smarty doesn't support selective
caching?

Thank you
Sajith A
  Réponse avec citation
Vieux 18/11/2005, 07h59   #2 (permalink)
messju mohr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Selective caching

On Fri, Nov 18, 2005 at 10:00:08AM +0530, Sajith A wrote:
> After going through samrty's doc i'm a bit confused about caching. It
> would be a great if some one could point me the right way of
> doing it.
>
>
> Suppose i have a page similar to what is given below,
> --------------------------------------------------------------------------------------------------
> <html>
> <head>
> <title><{$SITE_TITLE}></title>
> </head>
> <body>
> <div id="menu">
> <{include file="includes/menu.tpl"}>
> </div>
> SATIC CONTENT HERE
> </body>
> </html>
> --------------------------------------------------------------------------------------------------
>
> and if i want to cache this page except the contents of menu.tpl .. is
> there a way in smarty to do this.


not with include. but with {insert} with an insert function that does
itself a $smarty->fetch().

> Or smarty doesn't support selective
> caching?
>
> Thank you
> Sajith A
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h48.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07346 seconds with 10 queries