0) { $affected_authors = array(); $affected_sections = array(); $affected_sections[] = 'global'; isset($oldvals['author_id']) && $affected_authors[] = $oldvals['author_id']; isset($newvals['author_id']) && $affected_authors[] = $newvals['author_id']; isset($oldvals['section_id']) && $affected_sections[] = $oldvals['section_id']; isset($newvals['section_id']) && $affected_sections[] = $newvals['section_id']; $affected_authors = array_unique($affected_authors); $affected_sections = array_unique($affected_sections); foreach ($affected_sections as $section) { $ret &= ezin_cache_clear("S$section"); } foreach ($affected_authors as $author) { $ret &= ezin_cache_clear("U$author"); } $ret &= ezin_cache_clear("featured_articles"); $ret &= ezin_cache_clear('ezin_sitemap'); $ret &= ezin_cache_clear('ezin_htmlmap'); } return $ret; /* Modeline for ViM {{{ * vim: set ts=4 ft=php: * vim600: fdm=marker fdl=0 fdc=3: * }}} */ ?>