Regenerate attribute models after clearing them

This prevents spurious errors when only using the backend
Merge branch 'regenerate-attributes-in-clear-cache-script' of https://github.com/VIISON/shopware-4