/[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.246, Wed Nov 11 08:14:03 2009 UTC revision 1.3.2.2.2.5.2.247, Fri Nov 13 23:07:32 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: boost.module,v 1.3.2.2.2.5.2.245 2009/11/11 07:21:14 mikeytown2 Exp $  // $Id: boost.module,v 1.3.2.2.2.5.2.246 2009/11/11 08:14:03 mikeytown2 Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 1714  function boost_cache_expire_by_db($paths Line 1714  function boost_cache_expire_by_db($paths
1714      while ($info = db_fetch_array($result)) {      while ($info = db_fetch_array($result)) {
1715        if (($info['page_callback'] == 'node' || $info['page_callback'] == 'taxonomy') && $info['page_id'] == 0) {        if (($info['page_callback'] == 'node' || $info['page_callback'] == 'taxonomy') && $info['page_id'] == 0) {
1716          // If we can't get a 'lock' just expire the file          // If we can't get a 'lock' just expire the file
1717          $filenames[] = $info;          $filenames[] = $info['filename'];
1718        }        }
1719        elseif ($info['page_id'] != '' && $info['page_type'] != '' && $info['page_callback'] != '') {        elseif ($info['page_id'] != '' && $info['page_type'] != '' && $info['page_callback'] != '') {
1720          // Use boost_cache_expire_router() if we can get a 'lock' on this item in the database          // Use boost_cache_expire_router() if we can get a 'lock' on this item in the database
# Line 1723  function boost_cache_expire_by_db($paths Line 1723  function boost_cache_expire_by_db($paths
1723        }        }
1724        else {        else {
1725          // If we can't get a 'lock' just expire the file          // If we can't get a 'lock' just expire the file
1726          $filenames[] = $info;          $filenames[] = $info['filename'];
1727        }        }
1728      }      }
1729      // Expire all files that match up      // Expire all files that match up
# Line 1917  function boost_cache_kill($files, $force Line 1917  function boost_cache_kill($files, $force
1917    if (variable_get('boost_ignore_flush', 0) < 3) {    if (variable_get('boost_ignore_flush', 0) < 3) {
1918      // Calc md5 hash and set base dir      // Calc md5 hash and set base dir
1919      foreach ($files as $key => $file) {      foreach ($files as $key => $file) {
1920          if (!is_string($file['filename'])) {
1921            if (BOOST_VERBOSE >= 5) {
1922              watchdog('boost', 'Error in boost_cache_kill() <br />String was not given for filename: !output', array('!output' => boost_print_r($file, TRUE, TRUE)));
1923            }
1924            continue;
1925          }
1926        if (empty($file['hash'])) {        if (empty($file['hash'])) {
1927          $files[$key]['hash'] = md5($file['filename']);          $files[$key]['hash'] = md5($file['filename']);
1928        }        }

Legend:
Removed from v.1.3.2.2.2.5.2.246  
changed lines
  Added in v.1.3.2.2.2.5.2.247

  ViewVC Help
Powered by ViewVC 1.1.2