re:Clearing the cache
| From: | Dennis Gearon | Date: | Fri, 21 Feb 2003 17:08:40 +0000 |
| Subject: | re:Clearing the cache | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8085@lists.php.net to get a copy of this message | ||
I wrote:
>Using $smarty->clear_all_cache() just hangs the browser. Any ideas on all of this?
I now have:
<embarassed grin>
The reason the script was hanging was that:
$smarty->clear_all_cache()
was the last line and had no semicolon, ';' OOOOOOOOOOPS!
But, having fixed that, I added clear_compiled_tpl(). Now the TOTAL contents of the file are:
-------------------------------------------------
<?php
require (SMARTY_DIR .'Smarty.class.php');
$smarty = new Smarty;
$smarty->clear_all_cache();
$smarty->clear_compiled_tpl();
?>
-------------------------------------------------
The net result is GOOD:
compiled templates are gone
cache is cleared
-------------------------------------------------
However, the script still hangs. Anybody know why?