Added fix for magento in subdirectories or store code in url
Added refresh for clear system cache and clear by type in magento backend