• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/gridvariation/gridstatestorage.php
  • Класс: BitrixCatalogComponentGridVariationGridStateStorage
  • Вызов: GridStateStorage::save
public function save(GridState $state): void
{
	$key = $this->getStorageKey($state->getProductId(), $state->getGridId());
	$cache = Application::getInstance()->getLocalSession($key);
	$cache->set(self::FIELD_CURRENT_PAGE, $state->getCurrentPage());
	$cache->set(self::FIELD_DEADLINE, time() + self::DEADLINE_SEC);
}