function _esi__rotate_seed_key in ESI: Edge Side Includes 6.2
Same name and namespace in other branches
- 7.3 esi.module \_esi__rotate_seed_key()
Rotate the seed key.
2 calls to _esi__rotate_seed_key()
- esi_cron in ./
esi.module - Implementation of hook_cron(). Every interval, rotate the seed (used to generate the role-cookie). (Each rotation will invalidate the varnish-cache for cached pre-role blocks).
- _esi__get_seed_key in ./
esi.inc - Get the current seed key.
File
- ./
esi.inc, line 22 - Helper functions for the ESI module.
Code
function _esi__rotate_seed_key() {
$seed = _esi__get_random_seed();
variable_set('esi_seed_key', $seed);
variable_set('esi_seed_key_last_changed', time());
return $seed;
}