Use app function in routes cache stub.