Changed writing to offline cache from synchronious to asynchronious.

Signed-off-by: Michel <info@1st-setup.nl>