PHPackages                             graycore/magento2-graphql-introspection-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. graycore/magento2-graphql-introspection-cache

ActiveMagento2-module[Caching](/categories/caching)

graycore/magento2-graphql-introspection-cache
=============================================

v0.2.2(3mo ago)1018.2k↑307.8%3MITPHPPHP &gt;=8.1CI passing

Since Jul 21Pushed 3w ago2 watchersCompare

[ Source](https://github.com/graycoreio/magento2-graphql-introspection-cache)[ Packagist](https://packagist.org/packages/graycore/magento2-graphql-introspection-cache)[ RSS](/packages/graycore-magento2-graphql-introspection-cache/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (3)Dependencies (26)Versions (17)Used By (0)

Magento 2 GraphQL Introspection Cache
=====================================

[](#magento-2-graphql-introspection-cache)

[![Packagist Downloads](https://camo.githubusercontent.com/c7a809186a55161bff0bc818310aacc6489af27732f606e3beb90d38d0b99aab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f67726179636f72652f6d6167656e746f322d6772617068716c2d696e74726f7370656374696f6e2d63616368653f636f6c6f723d626c7565)](https://packagist.org/packages/graycore/magento2-graphql-introspection-cache/stats)[![Packagist Version](https://camo.githubusercontent.com/502bae99f8c774f9c58a0e7ae9070af46c883105563a3d93202ce260d687cd79/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67726179636f72652f6d6167656e746f322d6772617068716c2d696e74726f7370656374696f6e2d63616368653f636f6c6f723d626c7565)](https://packagist.org/packages/graycore/magento2-graphql-introspection-cache)[![Packagist License](https://camo.githubusercontent.com/ba9a7d2f7c59959893f6c9e3cb09897719279c9fa14f949b5d87c5465f88dd48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f67726179636f72652f6d6167656e746f322d6772617068716c2d696e74726f7370656374696f6e2d6361636865)](https://github.com/graycoreio/magento2-graphql-introspection-cache/blob/master/LICENSE)[![MageCheck Status](https://camo.githubusercontent.com/99ca5a01ae4e3f4801b891732fd9475b686b398410811203d257b07451355afc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67726179636f7265696f2f6d6167656e746f322d6772617068716c2d696e74726f7370656374696f6e2d63616368652f636865636b2d657874656e73696f6e2e79616d6c3f266c6162656c3d4d616765436865636b266c6162656c436f6c6f723d316131613161)](https://github.com/graycoreio/magento2-graphql-introspection-cache/actions/workflows/check-extension.yaml)[![MageCheck Supported Version](https://camo.githubusercontent.com/7e39a6d24d42596e6ddf7d6a99b93d5ef0bfd0fd1190cdf79d08eb7d9e1ba773/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63757272656e746c795f737570706f727465642d616e793f6c6162656c3d4d616765436865636b253230537570706f72746564266c6162656c436f6c6f723d31613161316126636f6c6f723d303930633962)](https://camo.githubusercontent.com/7e39a6d24d42596e6ddf7d6a99b93d5ef0bfd0fd1190cdf79d08eb7d9e1ba773/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63757272656e746c795f737570706f727465642d616e793f6c6162656c3d4d616765436865636b253230537570706f72746564266c6162656c436f6c6f723d31613161316126636f6c6f723d303930633962)

This module allows you to use the same mechanism that is used for caching regular GraphQL resolvers, for introspection queries.

This helps minimize the number of times Magento is bootstrapped.

The following introspection types are supported out of the box:

- ProductAttributeFilterInput

This module is **experimental**, it contains BC-fixes for older Magento versions (&lt;2.4.2). Class internals will likely change when support for those versions end.

Getting Started
---------------

[](#getting-started)

This module is intended to be installed with [composer](https://getcomposer.org/). From the root of your Magento 2 project:

1. Download the package

```
composer require graycore/magento2-graphql-introspection-cache
```

2. Enable the package

```
./bin/magento module:enable Graycore_GraphQlIntrospectionCache
```

Usage
-----

[](#usage)

You can add your own introspection cache identity by adding a bit of di.xml:

```

            Namespace\Module\Model\Cache\Identity\Introspection\NameOfInspectedType

```

Your class must implement `Magento\Framework\GraphQl\Query\Resolver\IdentityInterface`.

For more information on GraphQL Cache Identities, please visit the [official documentation](https://devdocs.magento.com/guides/v2.4/graphql/develop/identity-class.html).

Internals
---------

[](#internals)

- A before plugin is created on `QueryProcessor::process` to set a custom `ReferenceExecutor`. This `ReferenceExecutor` is instantiated using the Object Manager, so that we can use plugins on it in a later stage.
- An after plugin is created on `ReferenceExecutor::doExecute`. This plugin determines if we are dealing with an introspection request and if there is a cache identity registered for it. If there is, it will attempt to generate cache tags and add it to the request.

Check out the unit/integration tests to get a better picture.

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance89

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 74.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~279 days

Recently: every ~349 days

Total

6

Last Release

91d ago

PHP version history (2 changes)0.1.0PHP &gt;=7.4

v0.2.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/cede4d8ff3624bd4e509cebd8a3da9abada797eb8e0737c6db26097fce82e67e?d=identicon)[damienwebdev](/maintainers/damienwebdev)

---

Top Contributors

[![damienwebdev](https://avatars.githubusercontent.com/u/9029654?v=4)](https://github.com/damienwebdev "damienwebdev (41 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![danslo](https://avatars.githubusercontent.com/u/743661?v=4)](https://github.com/danslo "danslo (5 commits)")[![gray-bot](https://avatars.githubusercontent.com/u/120588553?v=4)](https://github.com/gray-bot "gray-bot (3 commits)")

---

Tags

cachinggraphqlmage-osmagento2performance

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/graycore-magento2-graphql-introspection-cache/health.svg)

```
[![Health](https://phpackages.com/badges/graycore-magento2-graphql-introspection-cache/health.svg)](https://phpackages.com/packages/graycore-magento2-graphql-introspection-cache)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1142.0M17](/packages/mollie-magento2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69362.0k](/packages/run-as-root-magento2-prometheus-exporter)[buckaroo/magento2

Buckaroo Magento 2 extension

32426.0k8](/packages/buckaroo-magento2)[loki/magento2-admin-components

Admin Panel grids and forms created via Loki Components

178.3k9](/packages/loki-magento2-admin-components)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50406.2k23](/packages/dotdigital-dotdigital-magento2-extension)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1312.0k3](/packages/opengento-module-category-import-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
