QUALITY PATCH

ACP2E-4593: The wrong Website Restriction CMS page is served on the secondary website storefront…

The wrong Website Restriction CMS page is served on the secondary website storefront in multi-website setups because the landing page cache key is not scoped per website. Quality patch ACP2E-4593 for magento/module-website-restriction applies to Magento Open Source and Adobe Commerce 2.4.5 to 2.4.9.

Categories
Content
Components
magento/module-website-restriction
Origin
adobe-commerce-support
Since QPT
1.1.82

Issue

The wrong Website Restriction CMS page is served on the secondary website storefront in multi-website setups because the landing page cache key is not scoped per website.

Steps to reproduce

1. Create two websites. 1. Create two CMS pages, add different text to each page in the content section, and assign each page to a different website. 1. Enable website restrictions and configure a landing page for its corresponding website. 1. Ensure that caching is enabled. 1. Open the storefront for the first website and verify the displayed landing page content. 1. Open the storefront for the second website and observe that it still displays the landing page content from the first website.

Adobe's page lists 2.4.5 - 2.4.9 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.10.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACP2E-4593. On Cloud, add ACP2E-4593 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACP2E-4593/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (1): magento/module-website-restriction

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.