public function FeedsHTTPCache::getCacheDir in Feeds 7.2
Returns cache dir.
Return value
string The cache dir to use.
6 calls to FeedsHTTPCache::getCacheDir()
- FeedsHTTPCache::constructFilePath in includes/
FeedsHTTPCache.inc - Constructs a file path for a certain cache ID.
- FeedsHTTPCache::deleteAllFiles in includes/
FeedsHTTPCache.inc - Deletes all files from the cache directory.
- FeedsHTTPCache::deleteFilesStartingWith in includes/
FeedsHTTPCache.inc - Deletes files from the cache directory starting with a certain string.
- FeedsHTTPCache::getFileList in includes/
FeedsHTTPCache.inc - Returns a list of file names in the cache directory.
- FeedsHTTPCache::isEmpty in includes/
FeedsHTTPCache.inc - Implements DrupalCacheInterface::isEmpty().
File
- includes/
FeedsHTTPCache.inc, line 39 - Contains FeedsHTTPCache class.
Class
- FeedsHTTPCache
- Cache implementation for the Feeds HTTP cache.
Code
public function getCacheDir() {
$dir = variable_get('feeds_http_file_cache_dir', NULL);
if ($dir) {
return $dir;
}
else {
$schemes = file_get_stream_wrappers(STREAM_WRAPPERS_WRITE_VISIBLE);
$scheme = isset($schemes['private']) ? 'private' : 'public';
return $scheme . '://feeds/cache';
}
}