Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- namespace Idus\Core\Plugin;
- class Http extends \Magento\Framework\App\Response\Http
- {
- public function idus()
- {
- if (!isset($this->{__FUNCTION__})) {
- $this->idus = \Magento\Framework\App\ObjectManager::getInstance()->get('Idus\\Core\\Helper\\Data');
- }
- return $this->idus;
- }
- public function send()
- {
- $this->skipCache();
- if (!isset($this->skipCache)) {
- header_remove('Set-Cookie');
- }
- return parent::send();
- }
- public function skipCache($ttl = 86400, $visible = 'public')
- {
- if (isset($this->{__FUNCTION__})) {
- return NULL;
- }
- $this->_session = \Magento\Framework\App\ObjectManager::getInstance()->get('Magento\\Backend\\Model\\Auth\\Session');
- if ($this->_session->isLoggedIn()) {
- $skip = true;
- }
- else {
- $skip = $this->request->getParam('_', false);
- }
- if (!$skip && !($skip = (int) $this->request->getParam('nocache', false))) {
- ....................................................................
- ..............................................
- .......................
Add Comment
Please, Sign In to add comment