Home > Archive > PHP Smarty Templates > July 2004 > Re: [SMARTY] error in docs
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [SMARTY] error in docs
|
|
| Messju Mohr 2004-07-02, 3:57 am |
| 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"?
> 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.
> Please enlighten.
> dan
| |
| Daniel Cummings 2004-07-06, 4:11 pm |
| 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:
>
> 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.
>
> undocumented.
so, is this the right way to go about using compile_id parameter? Is this
feature at risk of being removed? 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.
[color=darkred]
thanks for enlightenment.
dan
| |
| Messju Mohr 2004-07-06, 9:02 pm |
| 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:
>
>
> 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.
>
> 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". :)
>
> thanks for enlightenment.
it was a pleasure :)
greetings
messju
> dan
|
|
|
|
|