function compare_cache($old, $new) { $diffs = array(); $diffs["add"] = compare_add($old, $new); $diffs["del"] = compare_del($old, $new); return $diffs; }
function compare_views($old, $new) { $diffs = array(); $diffs["add"] = compare_add($old, $new); $diffs["del"] = compare_del($old, $new); $diffs["update"] = compare_update($old, $new); return $diffs; }