Fixed user prefs for the web management
Moodle cache deletion

Moodle cache is now deleted to solve cached ldap settings.