Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Console/Command/AllCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AllCommand extends CommandAbstract
protected function configure()
{
parent::configure();

$this
->setName(self::COMMAND_NAMESPACE . 'all')
->setDescription('Bust All URLs.');
Expand All @@ -25,11 +25,12 @@ protected function configure()
/**
* @param InputInterface $input
* @param OutputInterface $output
* @return null
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->cacheBust->bustAll();
$output->writeln('<info>All URLs cache busted successfully.</info>');
return 0;
}
}
5 changes: 3 additions & 2 deletions Console/Command/MediaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MediaCommand extends CommandAbstract
protected function configure()
{
parent::configure();

$this
->setName(self::COMMAND_NAMESPACE . 'media')
->setDescription('Bust Media URLs.');
Expand All @@ -25,11 +25,12 @@ protected function configure()
/**
* @param InputInterface $input
* @param OutputInterface $output
* @return null
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->cacheBust->bustMedia();
$output->writeln('<info>Media URLs cache busted successfully.</info>');
return 0;
}
}
5 changes: 3 additions & 2 deletions Console/Command/StaticCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class StaticCommand extends CommandAbstract
protected function configure()
{
parent::configure();

$this
->setName(self::COMMAND_NAMESPACE . 'static')
->setDescription('Bust Static URLs.');
Expand All @@ -25,11 +25,12 @@ protected function configure()
/**
* @param InputInterface $input
* @param OutputInterface $output
* @return null
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->cacheBust->bustStatic();
$output->writeln('<info>Static URLs cache busted successfully.</info>');
return 0;
}
}
2 changes: 1 addition & 1 deletion Update/UpdateFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getFeedData()
);
$curl->addOption(CURLOPT_FOLLOWLOCATION, true);

$curl->write(\Zend_Http_Client::GET, $this->getFeedUrl(), '1.0');
$curl->write('GET', $this->getFeedUrl(), '1.0');
$data = $curl->read();
$curl->close();

Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "absolute/magento2-cache-bust",
"description": "Absolute Commerce Cache Bust extension for Magento 2",
"type": "magento2-module",
"version": "3.1.2",
"license": "proprietary",
"autoload": {
"files": [
Expand Down