[ticket/12368] Always clean the cache prior to run the migrations

PHPBB3-12368
Merge pull request #3022 from Nicofuma/ticket/12368

[ticket/12368] Always clean the cache prior to run the migrations