Same name in other branches
  1. 7.x-1.x advagg.module \advagg_clearstatcache()

Wrapper around clearstatcache so it can use php 5.3's new features.

Parameters

string $filename: String.

Return value

null value from clearstatcache().

2 calls to advagg_clearstatcache()
advagg_get_info_on_files in ./advagg.inc
Given a filename calculate various hashes and gather meta data.
advagg_save_data in ./advagg.missing.inc
Save data to a file.

File

./advagg.inc, line 789

Code

function advagg_clearstatcache($filename = NULL) {
    static $php530;
    if (!isset($php530)) {
        $php530 = version_compare(PHP_VERSION, '5.3.0', '>=');
    }
    if ($php530) {
        return clearstatcache(TRUE, $filename);
    }
    else {
        return clearstatcache();
    }
}