• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/mfa/otp.php
  • Класс: BitrixSecurityMfaOtp
  • Вызов: Otp::clearGlobalCache
protected function clearGlobalCache()
{
	$cache_dir = '/otp/user_id/' . substr(md5($this->getUserId()), -2) . '/' . $this->getUserId() . '/';
	$cache = new CPHPCache;
	$cache->CleanDir($cache_dir);

	return $this;
}