0 && $this->rec > 0) { global $ezin_sys; $affected_sections = array(); $affected_sections[] = 'global'; // First query $query = sprintf('SELECT DISTINCT id FROM %s WHERE author_id = %d', $ezin_sys['db']['tables']['sections'], intval($this->rec)); $result = $this->myQuery($query); while ($row = @mysql_fetch_array($result, MYSQL_NUM)) { $affected_sections[] = $row[0]; } @mysql_free_result($result); // Second query $query = sprintf('SELECT DISTINCT s.id FROM %s AS s, %s AS a, %s AS u' .' WHERE s.id = a.section_id AND u.id = a.author_id AND u.id = %d', $ezin_sys['db']['tables']['sections'], $ezin_sys['db']['tables']['articles'], $ezin_sys['db']['tables']['authors'], intval($this->rec)); $result = $this->myQuery($query); while ($row = @mysql_fetch_array($result, MYSQL_NUM)) { $affected_sections[] = $row[0]; } @mysql_free_result($result); // Cache clear action $affected_sections = array_unique($affected_sections); foreach ($affected_sections as $section) { //echo 'DEBUG: deleting ',"S$section",'
'; $ret &= ezin_cache_clear("S$section"); } $ret &= ezin_cache_clear('U'.$this->rec); } return $ret; /* Modeline for ViM {{{ * vim: set ts=4 ft=php: * vim600: fdm=marker fdl=0 fdc=3: * }}} */ ?>