The great David Schoneveld shares a Maya script of his called cache Fluid and PlayBlast. This has both a playblasting script and a simple fast caching (fast b/c it hides the fluids while it caches)
David notes “Just posted this for people to check out. Its a somewhat polished somewhat rough cache then playblast script. I’ve commented it heavily so you can check it out and break it down. Only works on Linux right now, since the “system” call is a linux format. A good simple test is to get it to work on Windows or OSX.”