zh:Add UserPref.cpp to support user data cache