Improve performance for checking if the crop exists

Created on 23 August 2024, 3 months ago
Updated 4 September 2024, 3 months ago

Problem/Motivation

We use the crop module in a project to generate the responsive image variants for each image using the Crop API. And ends up calling the cropExists via getCropEntity. This adds up if the number of images on a page is huge.

Steps to reproduce

NA

Proposed resolution

The Drupal\crop\Entity\Crop::cropExists function could be improved by adding a range.

Remaining tasks

Create a PR

User interface changes

NA

API changes

NA

Data model changes

NA

📌 Task
Status

RTBC

Version

2.0

Component

Code

Created by

🇮🇳India ajits India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024