You are here

function advagg_clearstatcache in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 7.2 advagg.inc \advagg_clearstatcache()
  2. 7 advagg.module \advagg_clearstatcache()

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

Parameters

$clear_realpath_cache: Bool.

$filename: String.

Return value

value from clearstatcache().

11 calls to advagg_clearstatcache()
advagg_admin_settings_form_submit in ./advagg.admin.inc
Validate form values. Used to unset variables before they get saved.
advagg_bundler_merge in advagg_bundler/advagg_bundler.module
Merge bundles together if too many where created.
advagg_bundle_built in ./advagg.module
See if this bundle has been built.
advagg_checksum in ./advagg.module
Generate a checksum for a given filename.
advagg_delete_file_if_stale in ./advagg.module
Callback to delete files modified more than a set time ago.

... See full list

File

./advagg.module, line 3722
Advanced CSS/JS aggregation module

Code

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