From 0395b406a570d9f9c3322679e73e04dde7aedc8e Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 25 Nov 2017 20:35:31 +1100 Subject: [PATCH] explain why form caching isnt effective --- booking.regn_form.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/booking.regn_form.inc b/booking.regn_form.inc index 9836a67..9f8a06a 100644 --- a/booking.regn_form.inc +++ b/booking.regn_form.inc @@ -950,13 +950,18 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all '#default_value' => !empty($data->booking_freestyle_text) ? $data->booking_freestyle_text : '' ); } - + + // 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(