[DUG-TO] cache_form important?
ahunter at sri.ca
ahunter at sri.ca
Wed May 27 16:11:47 EDT 2009
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 = [ http://api.drupal.org/api/function/form_get_cache/6
]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'].
[ http://api.drupal.org/api/function/form_set_cache/6
]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."
>
>[ mailto:carole at fluidITsolutions.com ]
>carole at fluidITsolutions.com
>+1 (416) 762-2245
>[ http://www.fluiditsolutions.com/ ]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/1968101b/attachment.htm>
More information about the DUG-TO
mailing list