deltete function about cache
bug: when dir option is nil file load function raise error