cache permissions, remove obsolete methods, user ip for pdo connection