ACSD-52613: Cache en indexen worden vernieuwd, zelfs zonder updates

De ACSD-52613-patch verhelpt het probleem waarbij het Adobe Commerce-probleem waarbij het cachegeheugen en de indexen worden vernieuwd wanneer er geen updates worden uitgevoerd naar Inventory_source -items door REST API . Deze patch is beschikbaar wanneer Quality Patches Tool (QPT) 1.1.37 wordt geïnstalleerd. De patch-id is ACSD-52613. De kwestie is opgelost in Adobe Commerce 2.4.7.

Betrokken producten en versies

het flard wordt gecreeerd voor de versie van Adobe Commerce:

  • Adobe Commerce (alle implementatiemethoden) 2.4.6

Compatibel met de versies van Adobe Commerce:

  • Adobe Commerce (alle implementatiemethoden) 2.4.6 - 2.4.7
NOTE
De patch kan van toepassing worden op andere versies met nieuwe Quality Patches Tool versies. Om te controleren of de patch compatibel is met uw Adobe Commerce-versie, werkt u het magento/quality-patches -pakket bij naar de meest recente versie en controleert u de compatibiliteit op de Quality Patches Tool : zoek naar patches op de pagina. Gebruik de patch-id als een zoekwoord om de patch te zoeken.

Probleem

Cache en indexen worden vernieuwd wanneer er geen updates worden uitgevoerd naar Inventory_source -items door REST API .

Eerste vereisten :

Geïnstalleerde inventarismodules

Stappen om te reproduceren:

  1. Zet de modus voor ontwikkelaars om in debug.log .

  2. Importbestand voorbereiden met 100 producten - import.csv:

    code language-none
    sku    name    product_type    attribute_set_code    price
    test_sku_1    test_sku_1    simple    Default    10
    test_sku_2    test_sku_2    simple    Default    10
    ...
    test_sku_100    test_sku_100    simple    Default    10
    
  3. Producten importeren uit import.csv

  4. Creeer nieuwe voorraad en bron genoemd test_stock en test_source.

  5. Wijs nieuwe voorraad aan de website toe en wijs bron aan voorraad toe.

  6. Creeer een nieuwe integratie met toegang tot allen, activeer het en kopieer-kleef de Token van de Toegang.

  7. Ga naar Opslag > Configuratie > de Diensten > Oauth > de Montages van de Consumenten en laat toe Tokens van de Toegang om als standalone tokens van de Drager worden gebruikt.

  8. Maak de cache leeg.

  9. Plaats indexeerders als bijgewerkt door programma

  10. API-aanvraag uitvoeren

    POST ../rest/V1/inventory/source-items

    door dit als het lichaam te gebruiken

    code language-none
    {
     "sourceItems": [
         {
             "sku": "test_sku_1",
             "source_code": "test_source",
             "quantity": 24,
             "status": 1
         },
         {
             "sku": "test_sku_2",
             "source_code": "test_source",
             "quantity": 50,
             "status": 1
         },
         {
             "sku": "test_sku_3",
             "source_code": "test_source",
             "quantity": 50,
             "status": 1
         },
         {
             "sku": "test_sku_4",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_5",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_6",
             "source_code": "test_source",
             "quantity": 19,
             "status": 1
         },
         {
             "sku": "test_sku_7",
             "source_code": "test_source",
             "quantity": 50,
             "status": 1
         },
         {
             "sku": "test_sku_8",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_9",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_10",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_11",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_12",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_13",
             "source_code": "test_source",
             "quantity": 50,
             "status": 1
         },
         {
             "sku": "test_sku_14",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_15",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_16",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_17",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_18",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_19",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_20",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_21",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_22",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_23",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_24",
             "source_code": "test_source",
             "quantity": 2,
             "status": 1
         },
         {
             "sku": "test_sku_25",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_26",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_27",
             "source_code": "test_source",
             "quantity": 13,
             "status": 1
         },
         {
             "sku": "test_sku_28",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_29",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_30",
             "source_code": "test_source",
             "quantity": 1,
             "status": 1
         },
         {
             "sku": "test_sku_31",
             "source_code": "test_source",
             "quantity": 2,
             "status": 1
         },
         {
             "sku": "test_sku_32",
             "source_code": "test_source",
             "quantity": 1,
             "status": 1
         },
         {
             "sku": "test_sku_33",
             "source_code": "test_source",
             "quantity": 49,
             "status": 1
         },
         {
             "sku": "test_sku_34",
             "source_code": "test_source",
             "quantity": 12,
             "status": 1
         },
         {
             "sku": "test_sku_35",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_36",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_37",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_38",
             "source_code": "test_source",
             "quantity": 10,
             "status": 1
         },
         {
             "sku": "test_sku_39",
             "source_code": "test_source",
             "quantity": 4,
             "status": 1
         },
         {
             "sku": "test_sku_40",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_41",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_42",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_43",
             "source_code": "test_source",
             "quantity": 2,
             "status": 1
         },
         {
             "sku": "test_sku_44",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_45",
             "source_code": "test_source",
             "quantity": 4,
             "status": 1
         },
         {
             "sku": "test_sku_46",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_47",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_48",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_49",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_50",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_51",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_52",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_53",
             "source_code": "test_source",
             "quantity": 2,
             "status": 1
         },
         {
             "sku": "test_sku_54",
             "source_code": "test_source",
             "quantity": 1,
             "status": 1
         },
         {
             "sku": "test_sku_55",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_56",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_57",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_58",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_59",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_60",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_61",
             "source_code": "test_source",
             "quantity": 16,
             "status": 1
         },
         {
             "sku": "test_sku_62",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_63",
             "source_code": "test_source",
             "quantity": 2,
             "status": 1
         },
         {
             "sku": "test_sku_64",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_65",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_66",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_67",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_68",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_69",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_70",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_71",
             "source_code": "test_source",
             "quantity": 16,
             "status": 1
         },
         {
             "sku": "test_sku_72",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_73",
             "source_code": "test_source",
             "quantity": 3,
             "status": 1
         },
         {
             "sku": "test_sku_74",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_75",
             "source_code": "test_source",
             "quantity": 4,
             "status": 1
         },
         {
             "sku": "test_sku_76",
             "source_code": "test_source",
             "quantity": 50,
             "status": 1
         },
         {
             "sku": "test_sku_77",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_78",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_79",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_80",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_81",
             "source_code": "test_source",
             "quantity": 2,
             "status": 1
         },
         {
             "sku": "test_sku_82",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_83",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_84",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_85",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_86",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_87",
             "source_code": "test_source",
             "quantity": 4,
             "status": 1
         },
         {
             "sku": "test_sku_88",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_89",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_90",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_91",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_92",
             "source_code": "test_source",
             "quantity": 4,
             "status": 1
         },
         {
             "sku": "test_sku_93",
             "source_code": "test_source",
             "quantity": 4,
             "status": 1
         },
         {
             "sku": "test_sku_94",
             "source_code": "test_source",
             "quantity": 3,
             "status": 1
         },
         {
             "sku": "test_sku_95",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_96",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_97",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_98",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_99",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         },
         {
             "sku": "test_sku_100",
             "source_code": "test_source",
             "quantity": 0,
             "status": 0
         }
     ]
    }
    
  11. Alle logbestanden verwijderen uit var/log

  12. Voer de aanvraag van REST API opnieuw uit.

  13. Controleer var/log/debug.log.

Verwachte resultaten :

Cache moet niet worden schoongemaakt en de indexen mogen niet na de tweede run worden uitgevoerd omdat er niets is gewijzigd.

Ware resultaten :

var/log/debug.log bevat de vermelding die betrekking heeft op het wissen van de cache.

De patch toepassen

Om individuele flarden toe te passen, gebruik de volgende verbindingen afhankelijk van uw plaatsingsmethode:

Gerelateerde lezing

Meer informatie over Quality Patches Tool vindt u in:

Voor informatie over andere flarden beschikbaar in QPT, verwijs naar Quality Patches Tool: Onderzoek naar flardenin de Quality Patches Tool gids.

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3