Skip to content

Instantly share code, notes, and snippets.

@victorquinn
Created March 30, 2012 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorquinn/2252458 to your computer and use it in GitHub Desktop.
Save victorquinn/2252458 to your computer and use it in GitHub Desktop.
cache_set() not getting hit?
$form_id = "test1234";
$form = array('nthnth' => "NNnthnthnt");
$form_state = array('sntssss' => "NTHNTHNTHNTH");
form_set_cache($form_id, $form, $form_state);
watchdog('vcache', 'Cache about to be called!');
cache_set('form_' . $form_id, $form, 'cache_form', time());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment