For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > July 2004 > 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 error in docs
Daniel Cummings

2004-07-01, 8:59 pm

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.

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?

Please enlighten.
dan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com