Remove /cache directory on if/elseif
Fix path to directory controller