Re: [SMARTY] error in docs
| From: | messju mohr | Date: | Tue, 06 Jul 2004 20:30:34 +0000 |
| Subject: | Re: [SMARTY] error in docs | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11530@lists.php.net to get a copy of this message | ||
Hi!
On Tue, Jul 06, 2004 at 10:48:39AM -0400, Daniel Cummings wrote:
> On 7/2/04 3:16 AM, "messju mohr" <messju@lammfellpuschen.de> wrote:
>
> > On Thu, Jul 01, 2004 at 04:12:21PM -0400, Daniel Cummings wrote:
> >> http://smarty.php.net/manual/en/api.is.cached.php
> >>
> >> is_cached() docs say nothing about a compile_id parameter, but my
> >> is_cached() test doesn't work without sending one. I added a compile_id
> >> parameter to each display() or fetch() call and after that my is_cached()
> >> always returned true even though the file was actually written to cache.
> >
> > you mean "always returned false"?
>
> yes, since I always use not is_cached() I got mixed up... but I gather the
> meaning was clear from the context.
yes it was.
> >> I know about setting the global $compile_id but I didn't realize that
> >> is_cached() accepts a compile_id parameter too.
> >>
> >> Undocumented? or Deprecated?
> >
> > undocumented.
>
> so, is this the right way to go about using compile_id parameter?
yes.
> Is this feature at risk of being removed?
no. the docs already have been updated in cvs and the compile_id
parameter is documented there. an updated manualpage for is_cached
will be available on smarty.php.net the next time the docs are built
and updated.
> i need to be able to name compile dirs using compile ids so i can
> see them being created and then target them for deleting later so i
> can't just use the global compile_id.
this should work fine with the compile_id parameter you "found". :)
> >> Please enlighten.
> >> dan
>
> thanks for enlightenment.
it was a pleasure :)
greetings
messju
> dan