Project

General

Profile

Feature #25407

Updated by Mathias Schreiber almost 10 years ago

When you use t3lib_div::getUserObj('&classname') then the object is stored as peristant. 
 However on the end of the extension you should also free the used space. There is no method to free the space again. If the extension is called a second time, then the objects are already there. However the objects should be empty. 





	 





	 public static function unsetUserObj($classRef) { 

		 if (isset($GLOBALS['T3_VAR']['getUserObj'][$classRef])) { 
			 unset($GLOBALS['T3_VAR']['getUserObj'][$classRef]); 
		 } 
	 } 

 

 (issue imported from #M18052)

Back