When a custom Magento cron job runs longer than its configured interval, another execution may start while the previous one is still working. For imports, exports or other write operations, that can lead to duplicate processing or conflicting writes. Magento…
Who or What Keeps Clearing the Cache? (Magento 2)
Does one of your Magento 2 caches seem to clear itself all the time? A Call Stack can help you find the cause. With custom extensions, it can show exactly which code triggered a cache cleanup. For temporary analysis, you…
Finding Slow Database Queries with the Query Log (Magento 2)
When a Magento 2 store is slow, PHP, Redis and Varnish are not always to blame. Individual slow database queries can also make certain pages or processes much slower than expected. Magento 2 includes a Query Log that you can…
GraphQL: Querying Variants of a Configurable Product (Magento 2)
Magento GraphQL can return not only the data of a configurable product but also its configurable attributes and associated child products. For example, the query might look like this:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
{ products( filter: { sku: { eq: "CONFIGURABLE-SKU" } } ) { items { sku name ... on ConfigurableProduct { configurable_options { attribute_code label values { uid label } } variants { product { sku name stock_status } } } } } } |
The expression … on ConfigurableProduct is an inline fragment. A…
High Redis or Valkey Memory Usage (Magento 2)
If Redis or Valkey consumes unusually large amounts of memory in a Magento 2 store with a large product catalog, a Magento core bug may be responsible. Adobe tracks the issue under the patch ACP2E-4908. Magento may create a separate…
Magento Admin Settings Are Not Saved
Sometimes you change a setting in Magento admin and save it, only to find the old value still there. The cause may actually be outside Magento. For large configuration forms, max_input_vars is one possible cause. By default, PHP accepts only…
Displaying the Plugin Chain of a Method via CLI (Magento 2)
Magento already provides the useful command dev:di:info for inspecting dependency injection. However, it does not display an entire plugin chain for a particular method. A small custom CLI command can retrieve that information directly from Magento’s interception configuration. The following…
Product Suddenly Disappears from the Store (Magento 2)
Do products suddenly disappear from your Magento 2.4.9 storefront after saving a related product? The core issue ACP2E-4741 may be the reason. This can occur when related products, upsells or cross-sells are used in a store with a custom stock…
Order Confirmation Emails Are Sent Twice (Magento 2)
There is a confirmed issue in some Magento 2 versions: an order is placed successfully, but the customer receives two order confirmations for the same order. The cause is not necessarily the mail server, SMTP module or custom sending logic.…
Which Module Defines Which Cron Job? (Magento 2)
Ever seen an unfamiliar cron job in cron_schedule but could not tell which module owns it from the job_code alone? Magento cron jobs are normally defined in a crontab.xml. A simple code search can reveal the corresponding definition.
|
1 |
grep -R --include="crontab.xml" 'job name="mein_job_code"' app/code vendor |
If…