You are here

function hackedFileHasher::cache_get in Hacked! 6.2

Same name and namespace in other branches
  1. 7.2 includes/hackedFileHasher.inc \hackedFileHasher::cache_get()
1 call to hackedFileHasher::cache_get()
hackedFileHasher::hash in includes/hacked_project.inc
Returns a hash of the given filename.

File

includes/hacked_project.inc, line 711

Class

hackedFileHasher
Base class for the different ways that files can be hashed.

Code

function cache_get($filename) {
  $cache = cache_get($this
    ->cache_key($filename), HACKED_CACHE_TABLE);
  if (!empty($cache->data)) {
    return $cache->data;
  }
}