|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
Author |
Message |
Topic: Insert : smarty insert it in cache! |
whitecrowsrain
Replies: 6
Views: 26264
|
Forum: General Posted: Fri Sep 28, 2007 4:21 pm Subject: Insert : smarty insert it in cache! |
Again, you have an {if} block around your {insert} tag. In a cached template, that {if} will not be tested!
But, that insert should give you dynamic content on each page load. You might need to ins ... |
Topic: Insert : smarty insert it in cache! |
whitecrowsrain
Replies: 6
Views: 26264
|
Forum: General Posted: Fri Sep 28, 2007 9:28 am Subject: Insert : smarty insert it in cache! |
If you need to pass dynamic parameters to the insert function, maybe you should look at block functions instead.
Ok, news.php there should be :
<?
//display the news
function s ... |
Topic: Insert : smarty insert it in cache! |
whitecrowsrain
Replies: 6
Views: 26264
|
Forum: General Posted: Wed Sep 26, 2007 2:41 pm Subject: Insert : smarty insert it in cache! |
Ok!
This is the index.php
<?
$smarty = new Smarty_GuestBook;
$smarty->caching=true;
...
//object that extract file from DB
$db= new db_use;
//extract th ... |
Topic: Insert : smarty insert it in cache! |
whitecrowsrain
Replies: 6
Views: 26264
|
Forum: General Posted: Wed Sep 26, 2007 7:43 am Subject: Insert : smarty insert it in cache! |
Hello
In my site I have one static section and one dinamic section.
I have set $smarty->caching=true and I use the "insert" function for the dinamic content.
The problem is when I upda ... |
Topic: Insert viene messo in cache |
whitecrowsrain
Replies: 1
Views: 22210
|
Forum: Language: Italian Posted: Wed Sep 26, 2007 7:37 am Subject: Insert viene messo in cache |
Salve
ho realizzato un sito dove ho una parte dinamica ed una statica.
Ho attivato la il caching ed ho inserito la parte dinamica tramite la funzione insert.
Tale parte dinamica va a prendere le ne ... |
|
Page 1 of 1 |
All times are GMT |
Powered by phpBB © 2001, 2005 phpBB Group
|