/** * Release any resourced held by this form storage mechanism for the indicated form * @param string $form */ public function release($form) { parent::release($form); if (!is_string($form)) { return; } if (($config = I2CE::getConfig()->traverse($path = $this->getFormPath($form), false, false)) instanceof I2CE_MagicDataNode) { $config->unpopulate(); } }
/** * Release any resourced held by this form storage mechanism for the indicated form * @param string $form */ public function release($form) { if (!is_string($form)) { return; } /* * Commenting this out because it causes this data to be re-queried when the form is created and released * frequently. This isn't much data per form so there shouldn't be any memory issues and there are * database issues when this is done frequently for data import or migrations. * if (array_key_exists($form,$this->form_field_data_cache)) { unset($this->form_field_data_cache[$form]); } if (array_key_exists($form,$this->form_id_cache)) { unset($this->form_id_cache[$form]); } */ parent::release($form); }