You are here

function advagg_clearstatcache in Advanced CSS/JS Aggregation 7.2

Same name and namespace in other branches
  1. 6 advagg.module \advagg_clearstatcache()
  2. 7 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
Advanced CSS/JS aggregation module.

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();
  }
}