Re: Cache checking on the Node Process step (STEP 2)

Jean-Christophe Michel <jc.michel-/aRvmaKoZxNWk0Htik3J/[email protected]>
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
Igor Vylusko wrote:
> I am a newbie in the binarycloud.

Welcome!

> Please advice, may I check (in overridden "process" method) is_Cached status
> of the Node at the very begining of its processing and do nothing with
> the Node and its children if cached?
> 
> E.g.
> 
> function process() {
>     $result = $this->_isCached();
>     if ($result == true) {
>         Log::entry(BC_LOG_DEBUG,'Node is Cached. Skip processing.', __FILE__, __LINE__);
>     } else {
>         Log::entry(BC_LOG_DEBUG, sprintf('#Node.Process#', $this->id),
>                 __FILE__, __LINE__);
>         $this->_modifyTree();
>         $this->_processChildren();
>         $this->_main();
>     }
> }

Seems wise to me.

> Where can I get performance tips and issues for the framework and my app
> based on it tuning?

I'm afraid it's a chapter we have to write togehter ;-)
Please suggest some ehancements, and maybe open a draft on the wiki.

> May I alter server response cache control options for the particular
> page(Node)?

Of course, change your cache settings in the Node in _setDefaults();


-- 
Jean-Christophe Michel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.