40 $state =
new GridState($productId, $gridId);
41 $key = $this->getStorageKey($productId, $gridId);
45 $deadline = (int)$cache->get(self::FIELD_DEADLINE);
46 if ($deadline < time())
48 $cache->set(self::FIELD_DEADLINE, time() + self::DEADLINE_SEC);
52 $currentPage = $cache->get(self::FIELD_CURRENT_PAGE);
53 if (isset($currentPage))
55 $state->setCurrentPage((
int)$currentPage);