function _ultimate_cron_variable_save in Ultimate Cron 7.2
Variable set with cache by-pass.
We update the the cron_last variable once a minute. In order to avoid clearing the variable cache every minute, we handle that variable directly.
The global static variables array is also updated, so variable_get() may retrieve the correct data afterwards.
Parameters
string $name: Name of variables to save.
mixed $value: Value of the variable.
2 calls to _ultimate_cron_variable_save()
- UltimateCronBackgroundProcessLegacyLauncher::poormanLauncher in plugins/
ultimate_cron/ launcher/ background_process_legacy.class.php - Poorman launcher background process callback.
- ultimate_cron_run_launchers in ./
ultimate_cron.module - Run all launchers.
File
- ./
ultimate_cron.module, line 1191
Code
function _ultimate_cron_variable_save($name, $value) {
global $conf;
db_merge('variable')
->key(array(
'name' => $name,
))
->fields(array(
'value' => serialize($value),
))
->execute();
$conf[$name] = $value;
}