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(
|
||||
'cid' => 'booking_data',
|
||||
'bin' => 'cache_booking',
|
||||
'expire' => time() + 360,
|
||||
),
|
||||
);
|
||||
*/
|
||||
|
||||
if ($inserting == TRUE) {
|
||||
$form['submit'] = array(
|
||||
|
Reference in New Issue
Block a user