test caching booking form

This commit is contained in:
Nathan Coad
2017-11-25 17:45:35 +11:00
parent 9a720ce93e
commit 0f260a1675
2 changed files with 17 additions and 0 deletions

View File

@@ -951,6 +951,12 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all
);
}
$form['cache'] = '#cache' => array(
'cid' => 'booking_data',
'bin' => 'cache_booking',
'expire' => time() + 360,
),
if ($inserting == TRUE) {
$form['submit'] = array(
'#type' => 'submit',