/[drupal]/contributions/modules/boost/boost.module
ViewVC logotype

Diff of /contributions/modules/boost/boost.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3.2.2.2.5.2.39, Sat May 30 20:55:56 2009 UTC revision 1.3.2.2.2.5.2.40, Mon Jun 1 08:32:55 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: boost.module,v 1.3.2.2.2.5.2.38 2009/05/30 18:54:38 mikeytown2 Exp $  // $Id: boost.module,v 1.3.2.2.2.5.2.39 2009/05/30 20:55:56 mikeytown2 Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 425  function _boost_get_http_header($regex, Line 425  function _boost_get_http_header($regex,
425   * TODO: don't cache pages with unacceptable symbols   * TODO: don't cache pages with unacceptable symbols
426   */   */
427  function boost_is_cacheable($path) {  function boost_is_cacheable($path) {
428      $path = (empty($path)) ? variable_get('site_frontpage', 'node') : $path;
429    $normal_path = drupal_get_normal_path($path); // normalize path    $normal_path = drupal_get_normal_path($path); // normalize path
430    
431    // Never cache the basic user login/registration pages or any administration pages    // Never cache the basic user login/registration pages or any administration pages
# Line 432  function boost_is_cacheable($path) { Line 433  function boost_is_cacheable($path) {
433      return FALSE;      return FALSE;
434    
435    // At present, RSS feeds are not cacheable due to content type restrictions    // At present, RSS feeds are not cacheable due to content type restrictions
436    if ($normal_path == 'rss.xml' || preg_match('!/feed$!', $normal_path))    if (preg_match('!/feed$!', $normal_path) || preg_match('!\.xml$!', $normal_path))
437      return FALSE;      return FALSE;
438    
439    // Don't cache comment reply pages    // Don't cache comment reply pages

Legend:
Removed from v.1.3.2.2.2.5.2.39  
changed lines
  Added in v.1.3.2.2.2.5.2.40

  ViewVC Help
Powered by ViewVC 1.1.2