Skip to content

GraphQl Schema Is Not Cached With Redis #39168

@m08110071

Description

@m08110071

Preconditions and environment

  • Magento 2.4.7-p2
  • Redis 7.2 and config requirepass
  • Config redis for cache and specific cache prefix id
  • Enable all cache types

Steps to reproduce

  • Call any GraphQl query and debug to file: vendor/magento/framework/Config/Data.php:108

Expected result

GraphQl schema is cached

Actual result

GraphQl schema is not cached

image

Additional information

  1. I tried to debug and see this issue happen since below code added:

File: vendor/magento/module-catalog-graph-ql/etc/di.xml

<virtualType name="Magento\Framework\GraphQl\Config\Data" type="Magento\Framework\Config\Data"> <arguments> <argument name="cacheTags" xsi:type="array"> <!-- Note: Because of DynamicAttributeReaders, this cache needs to be cleaned when attributes change--> <item name="EAV" xsi:type="string">EAV</item> </argument> </arguments> </virtualType>

  1. Some cases, cache is stored to file automatically

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Labels

Priority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.7-p2Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions