Fix cache file open flags.
Fix cache file open flags.

minaevmike/rspamd,dark-al/rspamd,amohanta/rspamd,minaevmike/rspamd,amohanta/rspamd,AlexeySa/rspamd,dark-al/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,dark-al/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspamd,minaevmike/rspamd,dark-al/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,amohanta/rspamd,minaevmike/rspamd,andrejzverev/rspamd,amohanta/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,minaevmike/rspamd,AlexeySa/rspamd,dark-al/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,amohanta/rspamd,andrejzverev/rspamd,minaevmike/rspamd