| 1 |
<?php |
<?php |
| 2 |
// $Id: luceneapi.module,v 1.36 2009/03/31 23:48:12 cpliakas Exp $ |
// $Id: luceneapi.module,v 1.37 2009/03/31 23:57:41 cpliakas Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 450 |
} |
} |
| 451 |
|
|
| 452 |
/** |
/** |
|
* Clears luceneapi values from the cache table. |
|
|
* |
|
|
* @return |
|
|
* NULL |
|
|
*/ |
|
|
function luceneapi_clear_cache() { |
|
|
foreach (luceneapi_module_list() as $module) { |
|
|
$cid = sprintf('%s_facet', $module); |
|
|
cache_clear_all($cid, 'cache'); |
|
|
} |
|
|
} |
|
|
|
|
|
/** |
|
| 453 |
* Helper function that returns an index when the $index parameter could either |
* Helper function that returns an index when the $index parameter could either |
| 454 |
* be an index object, module name, or NULL flagging that the module name should |
* be an index object, module name, or NULL flagging that the module name should |
| 455 |
* be retrieved from arg(1). |
* be retrieved from arg(1). |
| 1317 |
* NULL |
* NULL |
| 1318 |
*/ |
*/ |
| 1319 |
function luceneapi_system_modules_form_submit($form, &$form_state) { |
function luceneapi_system_modules_form_submit($form, &$form_state) { |
| 1320 |
luceneapi_clear_cache(); |
foreach (luceneapi_module_list() as $module) { |
| 1321 |
|
cache_clear_all($module, 'cache', TRUE); |
| 1322 |
|
} |
| 1323 |
} |
} |
| 1324 |
|
|
| 1325 |
/** |
/** |