function authcache_form_cacheobject_presave in Authenticated User Page Caching (Authcache) 7.2
Implements hook_cacheobject_presave().
File
- modules/
authcache_form/ authcache_form.module, line 68 - Form token retrieval for Authcache.
Code
function authcache_form_cacheobject_presave($object, $cid, $bin) {
if ($bin === 'cache_form' && authcache_page_is_cacheable()) {
// Extend the expiry period for cached forms.
$object->expire = REQUEST_TIME + authcache_form_cache_lifespan();
}
}