Download the PHP package webscale-networks/magento-varnish-api without Composer

On this page you can find all versions of the php package webscale-networks/magento-varnish-api. 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-varnish-api

Webscale Varnish for Magento 2

Webscale Varnish is a Magento 2 extension that connects your store’s full page cache to the Webscale Control Plane, so your store is cached – and stays in sync – at the edge.

In short: Magento → Webscale Varnish (this extension) → Webscale Control Plane → Varnish at the edge.


How it works (high level)

Webscale Varnish does not invent its own cache invalidation rules. Instead it relays Magento’s existing invalidations to the Webscale platform:

Magento → Webscale Varnish (this extension) → Webscale Control Plane → Varnish

Misconfigured or overly aggressive invalidation in Magento will therefore still result in frequent cache flushes at the edge.


Requirements


Quick start (installation)

Run the following in your Magento root directory.

  1. Add the Webscale repository

    To avoid CI/CD issues with GitHub, set "no-api": true in your composer.json:

  2. Require the extension

  3. Enable the module and update Magento

  4. Log into the Magento Admin

    After deployment, log into the Magento admin panel to complete configuration.


Configure Webscale Varnish

Once the module is installed, configure it in the Magento admin.

1. Configure Webscale credentials

  1. In the Magento admin, go to:

  2. Under General Configuration:

    • Set Enabled to Yes.
    • Enter your API token.
    • Enter your Application Id (the Webscale application/environment that corresponds to this Magento store).
  3. Click Save Config.

2. Use Varnish for Magento FPC

  1. In the Magento admin, go to:

  2. In the Caching Application field, select Varnish Cache.
  3. Save the configuration.

Your store’s full page cache will now be served by Varnish and integrated with Webscale via this extension.


Optional configuration

These options are available in the Webscale Varnish configuration section.

Debug mode

Enable Debug under the Developer section to get more detailed logs from the extension.

Cache events

The Cache Events section lists Magento events that trigger Webscale cache flushes. All events are selected by default.

Important

Too many invalidation events can increase load on your origin and APIs. Review events carefully on busy or heavily integrated stores.

Scheduled full cache flush

Webscale Varnish supports a scheduled full cache flush via cron.

You can choose one of three frequency modes:

A cron expression helper in the UI shows the generated schedule.

Warning

Full cache flushes are expensive. Use scheduled full flush only when you need a predictable reset schedule and have validated the performance impact in a staging or non-production environment.


Managing Webscale Varnish cache from Magento

Webscale Varnish cache is automatically flushed in response to Magento’s native cache events (full cache flush and per-tag invalidation).

To flush only the Webscale Varnish cache from the Magento admin:

  1. Go to:

  2. In Additional Cache Management, click Flush Webscale Varnish Cache.

This clears only the Webscale Varnish cache, without flushing all Magento caches.


Related extensions


Further documentation

Platform-wide Webscale and Varnish documentation, configuration guidance, and troubleshooting guides are available at:


All versions of magento-varnish-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.1
magento/magento2-base Version 2.3.* || 2.4.*
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 webscale-networks/magento-varnish-api contains the following files

Loading the files please wait ...