Download the PHP package blackbird/module-eav-optimize without Composer

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

EavOptimize - Magento 2 Plugin

Description

The EavOptimize plugin provides a solution to optimize the performance of fetching attribute options in Magento 2. It introduces memoization and caching for EAV (Entity-Attribute-Value) attribute option values, which can improve store performance by reducing redundant database calls.

Additionally, this module forces the default value of cache_user_defined_attributes system configuration to 1, ensuring that custom attributes are cached by default for better efficiency. You can still disable this config in adminhtml.

See existing Magento issue: https://github.com/magento/magento2/issues/36174 See in progress official PR: https://github.com/magento/magento2/pull/39476

Features

Configuration

To manage the caching behavior, navigate to the Admin Panel:

  1. Go to Stores > Configuration > Advanced > Developer.
  2. Locate the Caching section.
  3. Check the Cache Attribute Options Values setting:
    • Yes (default): Enables caching for attribute option values retrieved using getAttributeText().
    • No: Disables caching.

Installation

  1. Install the module using composer:
    composer require blackbird/module-eav-optimize

  2. Run the following commands to register and enable the module:

Technical Details

Why Use EavOptimize?

Fetching EAV attribute options using getAttributeText() in Magento can result in multiple redundant queries, especially in cases where multiple calls retrieve the same data. The EavOptimize plugin avoids such performance bottlenecks by leveraging memoization to reuse data within a single request and caching to persist retrieved attribute options across requests.

Changes Introduced

Performance Benefits

  1. Reduces the number of database queries during attribute option lookups.
  2. Improves overall page load times, especially for pages that frequently query for attribute text (e.g., product pages, category pages).
  3. Ensures smoother performance under heavy load.

Compatibility

This module is compatible with:

Usage Example

Without EavOptimize:

When fetching an attribute's option text multiple times (e.g., by calling getAttributeText() in a loop), Magento may execute redundant database calls to retrieve the same data repeatedly.

With EavOptimize:

The plugin stores these values in memory through memoization during runtime. For subsequent calls, the data is fetched directly from memory or cache instead of querying the database.

Example:


Enjoy improved performance while managing your EAV attributes with EavOptimize! 🚀


All versions of module-eav-optimize with dependencies

PHP Build Version
Package Version
Requires magento/framework Version *
magento/module-eav 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/module-eav-optimize contains the following files

Loading the files please wait ....