Contributions 1 min read

# Using localized field – lazy load fix

Check out how we fixed the issue with lazy load when using localized fields in Pimcore!

Last updated on 29 August, 2025

## Key takeaways

1. Lazy loading did not work correctly inside Pimcore localized fields because lazy loaded fields are not serialized for cache.
2. Factory's fix unmarks such fields as loaded, so Pimcore loads them again when they are requested.
3. The fix matters because, from Pimcore 6.5.0, relations are always lazy loaded with no option to exclude them.

## **What was the issue?**

There was an issue with using lazy load functionality inside localized fields.

## **How did you solve it?**

Since lazy loaded fields are not serialized for cache, the field needs to be unmarked as loaded, so it can be loaded again when requested.

## **Why is this fix important?**

Lazy loading is good practice for improving website performance. Moreover, from Pimcore v6.5.0. relations are always lazy loaded and there is no configuration to exclude it. Therefore, it is important that all aspects of it work properly.

## **How does it feel to contribute to a platform such as Pimcore?**

As Pimcore is our primary development platform, it is great when we can contribute in any way. It is also nice to help other developers that might encounter the same issue.

And if you want to check out this [pull request](https://github.com/pimcore/pimcore/pull/9270), just follow the link!

## Related

[Contributions **Option to allow free input in select editable** More power is given to the developers through this fix. Now, it's up to them allow editors even more freedom when working in Pimcore. Find out what's new. 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/free-input-select-editable) [Contributions **Validation errors with subItems without context stack fix** Our Pimcore developer, Tomislav, has solved another issue on the Pimcore platform. Find out why this pull request is important and what use will users have from this… 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/validation-errors-fix) [Contributions **Added async option to headscript fix** Check out one of our Pimcore developers helped add the async option to the headscript, and bringing closer the release of Pimcore X! 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/added-async-option-headscript-fix)

---

Source: https://factory.dev/pimcore-knowledge-base/contributions/localized-field-lazy-load-fix
