[DUG-TO] cache_form important?
Carole St. Laurent
carole at fluidITsolutions.com
Wed May 27 16:21:21 EDT 2009
Adam, thanks a lot, it worked.
Carole
-----Original Message-----
From: dug-to-bounces at lists.openject.com
[mailto:dug-to-bounces at lists.openject.com]On Behalf Of ahunter at sri.ca
Sent: Wednesday, May 27, 2009 4:12 PM
To: carole at fluidITsolutions.com
Cc: Drupal
Subject: Re: [DUG-TO] cache_form important?
Hi Carole,
It should be fine to have an empty cache_form table.
drupal_get_form (d6, at least) contains the following logic:
...
if (isset($_POST['form_id']) && $_POST['form_id'] == $form_id &&
!empty($_POST['form_build_id'])) {
$form = form_get_cache($_POST['form_build_id'], $form_state);
}
// If the previous bit of code didn't result in a populated $form
// object, we're hitting the form for the first time and we need
// to build it from scratch.
if (!isset($form)) {
...
// then, ultimately:
if ($cacheable && !empty($form['#cache'])) {
// Caching is done past drupal_process_form so #process callbacks can
// set #cache. By not sending the form state, we avoid storing
// $form_state['storage'].
form_set_cache($form_build_id, $original_form, NULL);
}
...
Hope this helps.
Cheers,
Adam.
carole at fluidITsolutions.com writes:
I'm stuck unable to import cache_form into my local DB. My Mac is
dreadfully slow, it dies without any records importing at all, even though
partial imports are allowed. I also upped my max query time to a dreadfully
slow interval. Nothing helps. Do I need this table, or can I load an empty
version & will it recreate locally fine?
Anyone having 1and1 DB problems? I am consistently this week.
thanks
Carole St. Laurent
Internet Consultant
fluidIT solutions
----------------------------
"Increase your impact through creative technical strategies."
carole at fluidITsolutions.com
+1 (416) 762-2245
www.fluidITsolutions.com
_______________________________________________
DUG-TO mailing list
DUG-TO at lists.openject.com
http://lists.openject.com/listinfo/dug-toa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openject.com/pipermail/dug-to/attachments/20090527/6ba7a06f/attachment-0001.htm>
More information about the DUG-TO
mailing list