Fix Cache class can not use backup_driver error.

In the original code,child class is initialized only once,when the cache
class is called firstly,if the child is invalid, It is no longer give a
valid object;