Firstly, caches are never added when you publish logs. However, if the cache does exist in your current database, then the log will be added to it.
Secondly, you can't specify which database the log is added to - the log is added to the currently selected database.
Secondly, you can't specify which database the log is added to - the log is added to the currently selected database.