ticket:240 manage cache in atomic manner
Merge branch 't240_the_cache_needs_to_be_managed_in_atomic_manner'
ticket:236 fixed get_cache_file_name