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

Igor Vylusko <versus-OY8o98/[email protected]>
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
Hello Jean-Christophe,

Thank you for your advice.

Friday, February 18, 2005, 1:27:41 PM, you wrote:

>> 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();
>>     }
>> }

JCM> Seems wise to me.

What reason it not be done earlier?
May be there are some issues on it?

Also, a have find out that no persistent db connection used all over
in binarycloud(Auth, Perm, ...), although there is persistent property in dataset
config of skeleton package.

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

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

Let's try, my English is poor, but I'll try do the best I can.

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

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

I meant server response cache control setings, if you as well, could
you please explain it in detail.

Best regards,
Igor
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.