You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when we cache prices or any models, then we remove all records from the cache (when some event occur). But why not removing only an updated item? For example, there's no need to remove all cached product prices if actually only one product is updated
we sometimes it's almost not possible. for example, PRODUCTS_ALSO_PURCHASED_IDS_KEY. We can remove keys of the current products ({0} parameter). But we should understand that we current product could be part of some other PRODUCTS_ALSO_PURCHASED_IDS_KEY
Actually there's no need to implement it for all entities. We should do it just for entities that could have a lot of records (thousands). For example, anything related to products
AndreiMaz
changed the title
Optimize cache implementation
Optimize cache implementation (remove only appropriate records from cache when some event is triggered)
Mar 8, 2016
AndreiMaz
changed the title
Optimize cache implementation (remove only appropriate records from cache when some event is triggered)
Performance. Optimize cache implementation (remove only appropriate records from cache when some event is triggered)
Nov 2, 2016
Currently when we cache prices or any models, then we remove all records from the cache (when some event occur). But why not removing only an updated item? For example, there's no need to remove all cached product prices if actually only one product is updated
we sometimes it's almost not possible. for example, PRODUCTS_ALSO_PURCHASED_IDS_KEY. We can remove keys of the current products ({0} parameter). But we should understand that we current product could be part of some other PRODUCTS_ALSO_PURCHASED_IDS_KEY
Actually there's no need to implement it for all entities. We should do it just for entities that could have a lot of records (thousands). For example, anything related to products
also see http://www.nopcommerce.com/boards/t/43931/increase-performance-in-addloacles.aspx#174309
The text was updated successfully, but these errors were encountered: