Yeah it's weird because the advanced-cache.php can only throw some error strings into the screen. It can't cause 500 server error.
500 error usually happens when you mis-config something (wp-config.php) or something goes wrong with .htaccess.
My advice: try to comment out each section in the advanced-cache.php to see which line causes the trouble (very old method of debugging lolz).