[development] Avoid running code block if process initiates on the server

Dayton Perkins goodnewsdayton at gmail.com
Fri Dec 20 02:32:13 UTC 2013


I have a lot of data that I am loading into PHP buffer from a text file 
cache. I recently added the Boost module. When the Boost crawler runs, I 
have no need for this data as it is user-specific.
What server variable is available to determine whether the process is a 
Web request or not? I would like to limit the resources that Boost uses 
when crawling the site.
-- 


/Kindest regards,/ 	/*Dayton Perkins*/ 	Dayton Perkins

Good News Design

Intelligent Web Programming for Business
Dayton Perkins: Recent American Expat in Hong Kong

dayton at goodnewsdesign.com <mailto:dayton at goodnewsdesign.com> 
dayton at goodnewsdesign.com <mailto:dayton at goodnewsdesign.com>
Phone Me 	U.S Phone (rings me in HK) 616-795-9039

http://goodnewsdesign.com
GND Logo <http://goodnewsdesign.com><http://goodnewsdesign.com>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20131220/422fb820/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3951 bytes
Desc: http://goodnewsdesign.com/images/signature.gif
Url : http://lists.drupal.org/pipermail/development/attachments/20131220/422fb820/attachment-0002.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1098 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20131220/422fb820/attachment-0002.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1083 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20131220/422fb820/attachment-0003.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 20888 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20131220/422fb820/attachment-0003.gif 


More information about the development mailing list