Clear association cache recursively before cache write
Move clear_association_cache out of loop
WIP
Merge branch 'clear_cache_before_write' into fix_embeded_association_schema_change
Mergin @boourns fixes, using real cache for tests