Re: [SMARTY] re:Clearing the cache
| From: | Nick Charsley | Date: | Fri, 21 Feb 2003 17:17:24 +0000 |
| Subject: | Re: [SMARTY] re:Clearing the cache | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8087@lists.php.net to get a copy of this message | ||
That's what we're here for :),
it's amazing how often the blinding fog of OOOOOPSness is lifted the second
you press the send button.
The number of times I'm saved by the auto-spell check (programmer 0
Spellchecker +10)
Been there, done that .... the Tee Shirt.
Nick (c)
----- Original Message -----
From: "Dennis Gearon" <gearond@cvc.net>
To: <smarty-general@lists.php.net>
Sent: Friday, February 21, 2003 5:17 PM
Subject: [SMARTY] re:Clearing the cache
> 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>
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>