time() ) //Is it still safe? return false; //Ok, Delete it, Its stale delete_option('ddacache_' . $name); unset($expire[$key]); update_option('ddacache_expires', $expire); return true; //Its "expired" } function cleanup(){ $expires = get_option('ddacache_expires') ? get_option('ddacache_expires') : array(); foreach($expires as $option => $time) delete_option($option); delete_option('ddacache_expires'); } } ?>