re:Clearing the cache
| From: | Dennis Gearon | Date: | Fri, 21 Feb 2003 17:17:54 +0000 |
| Subject: | re:Clearing the cache | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8086@lists.php.net to get a copy of this message | ||
I wrote:
>However, the script still hangs. Anybody know why?
OOOOOOPS again, the Opera Browser still needs some work (6.x anyways). The script previously sent
outputs nothing to the browser, so Opera hangs. Most browsers would say:
"the document contained no data."
I changed the file to what's below, much moe better now:
----------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Clears Compiled Templates and Cache </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="Dennis Gearon">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<?php
require (SMARTY_DIR .'Smarty.class.php');
$smarty = new Smarty;
$smarty->clear_compiled_tpl();
?>
<center>
<font size="+3" color="#0000ff">Complied Templates Cleared<br>
<?php
$smarty->clear_all_cache();
?>
<br>
Cache Cleared
</center>
</BODY>
</HTML>