function flushCategory($categoryId = null)
 {
     global $database;
     if (empty($categoryId)) {
         $categoryId = '';
     } else {
         $categoryId = $categoryId . '\\_';
     }
     $cache = pageCache::getInstance();
     $categoryLists = POD::queryColumn("SELECT name\n\t\t\tFROM {$database['prefix']}PageCacheLog\n\t\t\tWHERE blogid = " . getBlogId() . "\n\t\t\tAND (name like 'categoryList\\_" . $categoryId . "%')");
     CacheControl::purgeItems($categoryLists);
     CacheControl::flushRSS();
     unset($cache);
     return true;
 }
 function flushTag($tagId = null)
 {
     global $database;
     if (empty($tagId)) {
         $tagId = '';
     } else {
         $tagId = $tagId . '-';
     }
     $cache = pageCache::getInstance();
     $tagLists = POD::queryColumn("SELECT name\n\t\t\tFROM {$database['prefix']}PageCacheLog\n\t\t\tWHERE blogid = " . getBlogId() . "\n\t\t\tAND (name like 'tagList-" . $tagId . "%'\n\t\t\t\tOR name like 'keyword-" . $tagId . "%'\n\t\t\t\tOR name like 'tagATOM-" . $tagId . "%'\n\t\t\t\tOR name like 'tagRSS-" . $tagId . "%')");
     CacheControl::purgeItems($tagLists);
     CacheControl::flushRSS();
     $cache->reset();
     $cache->name = 'tagPage';
     $cache->purge();
     return true;
 }