$file = '/path/to/file.txt'; if (file_exists_cache($file)) { echo 'File exists'; } else { echo 'File does not exist'; }
$dir = '/path/to/directory'; if (file_exists_cache($dir)) { echo 'Directory exists'; } else { echo 'Directory does not exist'; }We cannot determine the package library for `file_exists_cache` function as it is not a standard PHP function, instead, it can be a part of any custom PHP library or framework.