Code
// check out if the contents are cached.
// If this is the case, we do not need to make DB queries.
// Note that we print out "cached:" in front of a chached output --
// of course, this is here to illustrate caching and needs to be removed!
if ($pnRender->is_cached('mymod_user_display.htm')) {
return 'cached:<br />' . $pnRender->fetch('mymod_user_display.htm');
}
// If this is the case, we do not need to make DB queries.
// Note that we print out "cached:" in front of a chached output --
// of course, this is here to illustrate caching and needs to be removed!
if ($pnRender->is_cached('mymod_user_display.htm')) {
return 'cached:<br />' . $pnRender->fetch('mymod_user_display.htm');
}
I have this code in my module. In the comment it says "and needs to be removed" Does that mean the caching needs to be removed or this piece of code?
I'm guessing it's the code, but still a little unsure.
