script can't recognize the $GLOBALS['cSite']['/'] because in the place of '/' must be a variable name. If you want to move your cache to a specific folder, just write
$path = 'the folder name'
. Please note, folder name must contain the full path from your server's root folder.