| 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 |
| 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 |
| 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 |
| 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 |
} |
} |