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

https://tracker.phpbb.com/browse/PHPBB3-12368

PHPBB3-12368