-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update develop with develop-1.x (#999)
* Update B2B / Catalog Permissions raw SQL (#977) * update bundle product collection for subproducts (#982) * add adminhtml event for flush catalog image cache (#983)
- Loading branch information
Showing
10 changed files
with
121 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace Algolia\AlgoliaSearch\Model\Observer; | ||
|
||
use Algolia\AlgoliaSearch\Helper\ConfigHelper; | ||
use Magento\Framework\Event\Observer; | ||
use Magento\Framework\Event\ObserverInterface; | ||
use Magento\Framework\Message\ManagerInterface; | ||
|
||
class CleanCatalogImagesCacheAfter implements ObserverInterface | ||
{ | ||
/** @var ConfigHelper */ | ||
private $configHelper; | ||
|
||
/** @var ManagerInterface */ | ||
private $messageManager; | ||
|
||
/** | ||
* @param ConfigHelper $configHelper | ||
* @param ManagerInterface $messageManager | ||
*/ | ||
public function __construct( | ||
ConfigHelper $configHelper, | ||
ManagerInterface $messageManager | ||
) { | ||
$this->configHelper = $configHelper; | ||
$this->messageManager = $messageManager; | ||
} | ||
|
||
/** | ||
* Add Notice for Product Reindexing after image flush | ||
* | ||
* @param Observer $observer | ||
*/ | ||
public function execute(Observer $observer) | ||
{ | ||
$this->messageManager->addWarningMessage(__(' | ||
Algolia Warning: The image cache has been cleared. | ||
All indexed image links will become invalid because the file will be nonexistent. | ||
Please run a full reindex of your catalog data to resolve broken images in your Algolia Search. | ||
')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters