Architecture
38% of the examWhat this topic covers
Apply Adobe Commerce caching, plugins, cron, and indexing to keep storefront behavior efficient and current. Configure multi-site boundaries and Composer patches, while using security controls such as input validation and output escaping.
When should you use an after plugin instead of a preference on a repository method?
Use an after plugin when you only need to inspect or adjust what a repository method returns. The after plugin runs once the original method finishes, and it leaves the repository and its arguments untouched. A preference replaces the whole class, so another module overriding the same class conflicts with it.