Download the PHP package blackbird/magento-2-clean-product-image-cache without Composer

On this page you can find all versions of the php package blackbird/magento-2-clean-product-image-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento-2-clean-product-image-cache

# magento-2-clean-product-image-cache [![Latest Stable Version](https://img.shields.io/badge/version-1.0.0-blue)](https://packagist.org/packages/blackbird/magento-2-clean-product-image-cache) [![License: MIT](https://img.shields.io/github/license/blackbird-agency/magento-2-clean-product-image-cache.svg)](./LICENSE) Sometimes you want to change product image without changing image name for many reason. **Problem** : if changed images was already generated in `pub/media/catalog/product/cache/` folders you need to delete all generated cached images to have your new image in front and in cache. **Solution** : this module which clean product image generated cache on product save. [How It Works](#how-it-works) • [Installation](#installation) • [Add your own clean cache strategy](#add-your-own-clean-cache-strategy) • [Support](#support) • [Contact](#contact) • [License](#license)

How It Works

When you save a product in the back-office it will delete all generated image cache file from the saved product in pub/media/catalog/product/cache/*

Installation

In production mode, do not forget to recompile and redeploy the static resources.

Add your own clean cache strategy

If you use a CDN like Cloudflare, you maybe need to use her API to clean the CDN cache. We give you two way to do that :

If you are using Cloudflare we have an extension of this module which call Cloudflare API to purge cache : blackbird/magento-2-clean-cloudflare-image-cache

Create your own strategy :

Create your own strategy service implementing Blackbird\CleanProductImageCache\Api\CleanCacheStrategyInterface

Add you strategy to the pool in your di.xml

You can use sortOrder and enabled to change execution order or disable strategies.

Use the dispatched event :

Create your Observer :

Plug it your Observer in the events.xml :

Support

Contact

For further information, contact us:

License

This project is licensed under the MIT License - see the LICENSE file for details.

That's all folks !


All versions of magento-2-clean-product-image-cache with dependencies

PHP Build Version
Package Version
Requires magento/framework Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package blackbird/magento-2-clean-product-image-cache contains the following files

Loading the files please wait ....