Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ProductRepository sku cache is destroyed when cacheLimit is reached
Nummeric SKUs are renumbered when array_slice is used to purge parts of the products-by-sku cache array. Per php documentation: > Note that array_slice() will reorder and reset the numeric array indices by default. as `$this->instances` has the SKUs as keys, the resulting shortened array might contain indexes that now point to a wrong product.
- Loading branch information