*/
private static $_singleton = NULL;
- /**
- * The constructor. Sets domain id if defined, otherwise assumes
- * single instance installation.
- */
- public function __construct() {
- parent::__construct();
- }
-
/**
* Singleton function used to manage this object.
*
// clear all caches
self::clearDBCache();
Civi::cache('session')->clear();
+ Civi::cache('metadata')->clear();
+ CRM_Core_DAO_AllCoreTables::reinitializeCache();
CRM_Utils_System::flushCache();
if ($sessionReset) {
return TRUE;
}
- if ($path && preg_match('/^civicrm\/ajax\/l10n-js/', $path)
- && !empty($_SERVER['HTTP_REFERER'])
- ) {
- $ref = parse_url($_SERVER['HTTP_REFERER']);
- if (
- (!empty($ref['path']) && preg_match('/civicrm\/upgrade/', $ref['path'])) ||
- (!empty($ref['query']) && preg_match('/civicrm\/upgrade/', urldecode($ref['query'])))
- ) {
- return TRUE;
- }
- }
-
return FALSE;
}