Download the PHP package serfe/module-uncacheableblockdetector without Composer

On this page you can find all versions of the php package serfe/module-uncacheableblockdetector. 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 module-uncacheableblockdetector

Serfe Uncached Blocks Detector - Magento 2

Latest Stable Version Total Downloads License PHP Version Require

The propouse of this module is to intercept the normal workflow of page rendering of Magento 2 and force the exit the rendering of the page if a block that is uncacheable is reached. If the block is uncacheable, the wholepage get it's cache disabled and cannot be handled by file cache or Varnish cache.

This is usefull to debug any module that might contain the following entry inside one of it's layout definitions (catalog_product_view.xml for example):

In which cases you will see this module required?

This module is good to help troubleshoot when your any page of the system is not having it's cache generated by Magento (in Varnish or in Disk Cache) and you don't know which is the block that is making this behaviour to happen.

Just install this module as developer dependency and configure it from the console or inside the developer section in the backend admin, refresh and see the block name popup as an error on your frontend section.

This only works on development mode. On production mode, this module auto-disable itself to avoid possible issues.

Install

Configuration

The module allow to enable or disable the feature on the backend section when in developer mode.

Go into Backend > Stores > Configuration > Advanced > Developer >

Using the console

If you want to have the setup been done using the console, run the following commands:

Enable the module detection with:

To disable the exception throwing on the first block detected:

When using this last option, you will see the detected entries into the debug.log file.

About Us

Serfe develops complete e-commerce solutions based on Magento 2 system and other platforms. Feel free to check it on the website.

Contributing

We welcome any contribution to this module. Fork the repo, make your changes and create a pull request with your changes.


All versions of module-uncacheableblockdetector with dependencies

PHP Build Version
Package Version
Requires php Version 7.*|^8.1
magento/framework Version *
magento/module-page-cache Version *
magento/module-store 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 serfe/module-uncacheableblockdetector contains the following files

Loading the files please wait ....