|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
haste Smarty Rookie
Joined: 07 Jun 2003 Posts: 17
|
Posted: Wed Oct 29, 2003 2:00 pm Post subject: Pre-render cache? |
|
|
Would it be possible for Smarty to pre-render cached pages instead of waiting for a visitor to the site requests it from the server?
Something like:
[php:1:f6dc431d37]<?php
$smarty->cache_render('my_template.tpl', $cache_id);
?>[/php:1:f6dc431d37]
Thanks so much for this awesome lib, BTW. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Oct 29, 2003 4:13 pm Post subject: |
|
|
use $smarty->fetch() to do this |
|
Back to top |
|
haste Smarty Rookie
Joined: 07 Jun 2003 Posts: 17
|
Posted: Wed Oct 29, 2003 8:40 pm Post subject: |
|
|
Oh, sweet. Thanks! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|