replicated query caching fix to dearch1.php
fixed saving oc team comment flag for new logs; fixes #274