| 1 |
<?php |
<?php |
| 2 |
// $Id: advcache.module,v 1.1.2.10 2009/02/26 13:02:45 mikejoconnor Exp $ |
// $Id: advcache.module,v 1.11 2009/02/26 13:39:12 mikejoconnor Exp $ |
| 3 |
|
|
| 4 |
function advcache_taxonomy($op, $type, $object=NULL) { |
function advcache_taxonomy($op, $type, $object=NULL) { |
| 5 |
if (is_null($object)) { |
if (is_null($object)) { |
| 84 |
break; |
break; |
| 85 |
} |
} |
| 86 |
} |
} |
| 87 |
|
|
| 88 |
function advcache_devel_caches() { |
function advcache_devel_caches() { |
| 89 |
return array('cache_advcache_block', 'cache_comment', 'cache_forum', 'cache_node', 'cache_path', 'cache_search', 'cache_taxonomy'); |
return array('cache_advcache_block', 'cache_comment', 'cache_forum', 'cache_node', 'cache_path', 'cache_search', 'cache_taxonomy'); |
| 90 |
} |
} |
| 91 |
|
|
| 92 |
|
/** |
| 93 |
|
* Implementation of hook_exit(). |
| 94 |
|
* |
| 95 |
|
* Call the caching code now resident in drupal_path_lookup(). This will only set the cache if |
| 96 |
|
* it was dirtied curing this pageload, or not found for the current request_uri. |
| 97 |
|
*/ |
| 98 |
|
function advcache_exit() { |
| 99 |
|
drupal_lookup_path('cache'); |
| 100 |
|
} |