function action()
 {
     set_time_limit(0);
     global $vars;
     $page = isset($vars['page']) ? $vars['page'] : '';
     if ($page != '') {
         $file = $this->get_cache_filename($page);
         @unlink($file);
         if (exec_page($page, '/^#contentsx/')) {
             $body = 'Recreated a cache of ';
         } else {
             $body = 'No #contentsx in ';
         }
         $body .= make_pagelink($page);
     } else {
         // remove all files
         $files = $this->get_cache_filenames();
         foreach ($files as $file) {
             unlink($file);
         }
         // execute all pages
         $exec_pages = exec_existpages('/^#contentsx/');
         if (empty($exec_pages)) {
             $body = '';
         } else {
             $links = array_map('make_pagelink', $exec_pages);
             $body = '<p>Following pages were executed to assure:</p>' . '<p>' . implode("<br />\n", $links) . '</p>';
         }
     }
     return array('msg' => 'Clean Contentsx Caches', 'body' => $body);
 }
 function action()
 {
     set_time_limit(0);
     global $vars;
     // remove all files
     $files = $this->get_items_filenames();
     $files = array_merge($files, $this->get_tags_filenames());
     $files = array_merge($files, (array) $this->get_tagcloud_filename());
     foreach ($files as $file) {
         unlink($file);
     }
     // execute all pages
     $exec_pages = exec_existpages('/&tag\\([^;]*\\);/');
     if (empty($exec_pages)) {
         $body = '';
     } else {
         $links = array_map('make_pagelink', $exec_pages);
         $body = '<p>Following pages were executed to assure:</p>' . '<p>' . implode("<br />\n", $links) . '</p>';
     }
     $body .= $this->display_tagcloud(NULL);
     return array('msg' => 'clean tag caches', 'body' => $body);
 }