dokan icon indicating copy to clipboard operation
dokan copied to clipboard

Add filter to ProductCache::delete to skip for certain $seller_ids

Open gosixl opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

I am constantly pulling in product and editing their info in an automated manner for user ID 0. Dokan in ProductCache.php invalidates many caches including product_data for many events including when a new product is added.

Because I am always adding and editing products automatically, its like there is no Dokan cache then. Dokan constantly is spending time invalidating the cache.

Describe the solution you'd like

Please add a filter in ProductCache::delete to skip if specific $seller_id. I will then write a cron that clears those caches once a day rather than constantly.

Describe alternatives you've considered

No response

Additional context

No response

gosixl avatar Feb 06 '24 22:02 gosixl

@nurul-umbhiya bhai, can you please check this issue?

imtiaz-pranto avatar Feb 12 '24 05:02 imtiaz-pranto