Store settings associated with hash.

Parameters

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 in ./advagg.cache.inc
See if any of the subfiles has changed.
advagg_get_current_hooks_hash in ./advagg.module
Get the hash of all hooks and settings that affect aggregated files contents.

File

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