Disk cache must go on your fastest drive with the fastest connection---so your internal SSD.
Footage should go on a relatively fast drive.
Writing rendered files out is (usually) not a big bandwidth hog, so you can probably write out to your slower HDD.
---------------------------------------------------------------------------------------------------------
Todd Kopriva, Adobe Systems Incorporated
After Effects product manager and curmudgeon
After Effects team blog
---------------------------------------------------------------------------------------------------------