After archived some alerts few times they don't show up
in archive db until I rebuild alert cache.
Move/Copy to archive db alert with cid for example 1111.
Go to archive db, you see that alert.
Than go back to alerts db and move/copy another alert
with cid for example 55, go to archive db and youll see
there only alert with cid 111.
/* if the CID in the cache < the CID in the event table
* then there are events which have NOT been added to
But this will not work for archive db because in any
moment alert with lesser cid can appear in archivedb.
Only complate delete/update alerts cache does the job.
I have no idea how to fix this except replace "update
alert cache" with "rebuild alert cache", but this will
hit performance for heavy archive db's ;]