Query($query); $rubrics = []; while ($row = $sql->FetchAssocArray()) $rubrics[$row['Id']] = $row; if ($cache_file) file_put_contents($cache_file, serialize($rubrics)); } Registry::set('rubric_changes', $rubrics); return Registry::get('rubric_changes'); } ?>