explain why form caching isnt effective
This commit is contained in:
@@ -951,12 +951,17 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://www.lullabot.com/articles/a-beginners-guide-to-caching-data-in-drupal-7
|
||||||
|
// This code will only cache this one element
|
||||||
|
// And forms get cached differently anyway
|
||||||
|
/*
|
||||||
$form['cache'] = array('#cache' => array(
|
$form['cache'] = array('#cache' => array(
|
||||||
'cid' => 'booking_data',
|
'cid' => 'booking_data',
|
||||||
'bin' => 'cache_booking',
|
'bin' => 'cache_booking',
|
||||||
'expire' => time() + 360,
|
'expire' => time() + 360,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
|
|
||||||
if ($inserting == TRUE) {
|
if ($inserting == TRUE) {
|
||||||
$form['submit'] = array(
|
$form['submit'] = array(
|
||||||
|
Reference in New Issue
Block a user