Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Magento 2.1.6 - Image Resizer Patch - Allow CLI Override
Index: www/vendor/magento/module-catalog/Helper/Image.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- www/vendor/magento/module-catalog/Helper/Image.php
+++ www/vendor/magento/module-catalog/Helper/Image.php
@@ -494,6 +494,6 @@
protected function isScheduledActionsAllowed()
{
$model = $this->_getModel();
- if ($model->isBaseFilePlaceholder() || $model->isCached()) {
+ if ($model->isBaseFilePlaceholder() || ($model->isCached() && php_sapi_name() !== 'cli')) {
return false;
}
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment