Fix Cache::get('file', method) logic
Added closure to avoiding running the "generate" method every time >.<