Download the PHP package shopwhizzy/magento2-swatchcache without Composer

On this page you can find all versions of the php package shopwhizzy/magento2-swatchcache. 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 magento2-swatchcache

ShopWhizzy SwatchCache for Magento 2

Module Name: shopwhizzy/magento2-swatchcache
Version: 1.0.11
Description: Magento 2 module to cache swatch configurations for large configurable products, improving performance by reducing frontend rendering time.
License: Proprietary
Author: ShopWhizzy

Overview

The ShopWhizzy_SwatchCache module enhances the performance of Magento 2 stores with large configurable products by caching swatch configurations (json_config and json_swatch_config) in the var/swatches directory. It includes a console command, a cron job, an observer, and an admin configuration interface to manage cache generation and clearing. Suitable for Hyvä Themes shops.

Features

Requirements

Installation

Via Composer

  1. Add the module to your Magento 2 project:

  2. Enable the module and update Magento:

  3. Deploy static content (if in production mode):

Manual Installation

  1. Download the module and place it in app/code/ShopWhizzy/SwatchCache.
  2. Enable the module and update Magento:

  3. Deploy static content (if in production mode):

Configuration

  1. Navigate to Stores > Configuration > ShopWhizzy > Swatches Cache in the Magento admin panel.
  2. Configure the following settings:

    General

    • Enable Cache Clearing on Product Save: Enable/disable the observer that clears cache files when a product is saved (default: Enabled).

    Cron Settings

    • Enable Cron: Enable/disable the cron job for cache generation (default: Enabled).
    • Cron Schedule: Set the cron expression (default: */2 * * * * for every 2 minutes).
    • Products per Cron Run: Number of valid products to process per cron run (default: 2).
    • Delay Between Requests (ms): Delay between processing each product in milliseconds (default: 1000ms).

    Cache Management

    • Clear All Swatch Cache: Click the button to delete all files in var/swatches via AJAX (only visible when cron is enabled).
  3. Save the configuration and clear the cache:

Usage

Generate Cache Manually

Run the console command to generate cache files for all configurable products or specific product IDs:

Cron Job

The cron job runs every 2 minutes by default, processing 2 valid configurable products per run, skipping products with existing caches or errors. Logs are written to var/log/system.log.

Clear Cache

Troubleshooting

License

This module is licensed under a proprietary license. See the LICENSE file or contact ShopWhizzy for details.

Support

For issues or feature requests, contact ShopWhizzy support at [email protected] or open an issue on the module's repository (if available).


All versions of magento2-swatchcache with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
magento/framework Version >=102.0.0
magento/module-catalog Version >=103.0.0
magento/module-configurable-product Version >=100.3.0
magento/module-swatches Version >=100.3.0
magento/module-cron Version >=100.3.0
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 shopwhizzy/magento2-swatchcache contains the following files

Loading the files please wait ...