Hi,
If you look at renderCache() method of class View, in file
cake/libs/view/view.php, it uses following code to append the cache render
time in HTML comment
if (Configure::read() > 0 && $this->layout != 'xml') {
echo "<!-- Cached Render Time: " . round(getMicrotime() - $timeStart, 4)
. "s -->";
}
So, either you need to set the debug level to 0 or need to use your own View
class by extending CakePHP's built-in and to override the renderCache()
method to add the code as needed. The non-recommended way is to modify
CakePHP's built-in View::renderCache() method.
Amit
PHP Applications for E-Biz: http://www.sanisoft.com
On Fri, Nov 12, 2010 at 12:57 AM, Gabriel <[email protected]> wrote:
> Hi, i'm having some problems with the Cache Helper, i have some cached
> json responses, and the cache helper adds at the end of the json data
> stats like this: "<!-- Cached Render Time: 0.0467s -->", that screwup
> the javascript json parser. How i could remove that info?
>
> Thanks
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
> more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en