aem-core-cif-components icon indicating copy to clipboard operation
aem-core-cif-components copied to clipboard

Custom attribute not updating immediately after changes in Magento

Open ShajiShaik opened this issue 4 years ago • 1 comments

Expected Behaviour

Attributes Configured in Magento should update immediately after changing in Magento.

Actual Behaviour

Working on CIF Core Product Component. Data is not updating immediately after changes in Magento. No cache implementation was performed from dispatcher level also. Even in local also it is not updating immediately. There is some delay in updating data. Sometimes it is updating immediately and sometimes not updating(taking around 30 minutes).

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Follow the steps given here

Platform and Version

     AEM Version: 6.5.9
     <core.wcm.components.version>2.17.8</core.wcm.components.version>
    <core.cif.components.version>2.0.0</core.cif.components.version>
    <magento.graphql.version>9.0.0-magento242ee</magento.graphql.version>
    <graphql.client.version>1.7.1</graphql.client.version>

Sample Code that illustrates the problem

Logs taken while reproducing problem

ShajiShaik avatar Oct 27 '21 04:10 ShajiShaik

@ShajiShaik thanks for bringing up the issue, may I ask you to do some additional checks.

  • test the query directly from a GraphQL client like GraphiQL or Altair GraphQL client. Make sure you do a GET request here (as this is the default config for AEM) > test before and after the product change > do you see the updates here immediately?
  • Check the HTTP Response headers of your Magento env for the GraphQL call, are there any caching headers set?
  • Configure the CIF GraphQL client to use POST method instead of GET (via the OSGI config). Does this help / change the behaviour?

mhaack avatar Oct 27 '21 07:10 mhaack