You are here

function filecache_is_readdeleteonly in File Cache 7

3 calls to filecache_is_readdeleteonly()
DrupalFileCache::check_filecache_directory in ./filecache.inc
DrupalFileCache::set in ./filecache.inc
Store data in the persistent cache.
DrupalFileCache::truncate_if_needed in ./filecache.inc

File

./filecache.inc, line 63
DrupalFileCache class that implements DrupalCacheInterface.

Code

function filecache_is_readdeleteonly() {
  return substr(php_sapi_name(), 0, 3) == "cli" || extension_loaded('posix') && posix_getuid() == 0;
}