* @return string
*/
public static function environment($env = NULL, $reset = FALSE) {
- static $environment;
if ($env) {
$environment = $env;
}
// clear all caches
self::clearDBCache();
+ Civi::cache('session')->clear();
CRM_Utils_System::flushCache();
if ($sessionReset) {