1 backdrop_web_test_case_cache.php | public BackdropWebTestCaseCache::isCached() |
Check if cache folder already exists.
Return value
boolean: TRUE if cache exists, FALSE if no cache for current profile.
File
- core/
modules/ simpletest/ backdrop_web_test_case_cache.php, line 30
Class
- BackdropWebTestCaseCache
- Class for setting up a full installation profile for caching purposes.
Code
public function isCached() {
$file_public_path = config_get('system.core', 'file_public_path', 'files');
$cache_dir = $file_public_path . '/simpletest/' . $this->fileDirectoryName;
if (is_dir($cache_dir)) {
return TRUE;
}
return FALSE;
}