? boost-368366.patch Index: boost.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v retrieving revision 1.3.2.2.2.5.2.49 diff -u -p -r1.3.2.2.2.5.2.49 boost.module --- boost.module 8 Jun 2009 05:09:12 -0000 1.3.2.2.2.5.2.49 +++ boost.module 8 Jun 2009 09:38:17 -0000 @@ -337,7 +337,7 @@ function boost_block($op = 'list', $delt } $block['subject'] = ''; - $block['content'] = theme('boost_cache_status', isset($ttl) ? $ttl : -1, $output); + $block['content'] = theme('boost_cache_status', isset($ttl) ? $ttl : -1, $output) . drupal_get_form('boost_block_form'); } break; } @@ -345,6 +345,29 @@ function boost_block($op = 'list', $delt } } +function boost_block_form() { + $form['clear_cache'] = array( + '#type' => 'fieldset', + '#title' => t('Static Cache'), + '#description' => t(''), + ); + $form['clear_cache']['path'] = array( + '#type' => 'hidden', + '#value' => $GLOBALS['_boost_path'], + ); + $form['clear_cache']['clear'] = array( + '#type' => 'submit', + '#value' => t('Flush Page'), + '#submit' => array('boost_block_form_submit'), + ); + return ($form); +} + + +function boost_block_form_submit(&$form_state, $form) { + boost_cache_expire_derivative($form['values']['path'], TRUE); +} + /** * Implementation of hook_theme(). */