Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Models/EavAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected static function booted(): void

public static function getCachedCatalog()
{
return Cache::memo()->rememberForever('catalog_eav_attributes', function () {
return Cache::memo()->rememberForever('catalog_eav_attributes_' . config('rapidez.store'), function () {
return EavAttribute::query()
->select('*')
->leftJoin('catalog_eav_attribute', 'catalog_eav_attribute.attribute_id', '=', 'eav_attribute.attribute_id')
Expand All @@ -39,7 +39,7 @@ public static function getCachedCatalog()

public static function getCachedCustomer()
{
return Cache::memo()->rememberForever('customer_eav_attributes', function () {
return Cache::memo()->rememberForever('customer_eav_attributes_' . config('rapidez.store'), function () {
return EavAttribute::query()
->select('*')
->leftJoin('customer_eav_attribute', 'customer_eav_attribute.attribute_id', '=', 'eav_attribute.attribute_id')
Expand All @@ -52,7 +52,7 @@ public static function getCachedCustomer()

public static function getCachedIndexable()
{
return Cache::memo()->rememberForever('indexable_eav_attributes', function () {
return Cache::memo()->rememberForever('indexable_eav_attributes_' . config('rapidez.store'), function () {
return static::getCachedCatalog()->where(fn ($attribute) => $attribute->backend_type === 'static'
|| $attribute->is_used_for_promo_rules
|| $attribute->used_in_product_listing
Expand Down
Loading