Store settings associated with hash.
Paramètres
string $hash: The hash.
array $settings: The settings associated with this hash.
Return value
MergeQuery value from db_merge
2 calls to advagg_set_hash_settings()
- advagg_detect_subfile_changes dans ./
advagg.cache.inc - See if any of the subfiles has changed.
- advagg_get_current_hooks_hash dans ./
advagg.module - Get the hash of all hooks and settings that affect aggregated files contents.
Fichier
-
./
advagg.module, line 3532
Code
function advagg_set_hash_settings($hash, array $settings = array()) {
return db_merge('advagg_aggregates_hashes')->key(array(
'hash' => $hash,
))
->fields(array(
'hash' => $hash,
'settings' => serialize($settings),
))
->execute();
}