GordonLesti / Lesti_Fpc

Simple Magento Fullpagecache
https://gordonlesti.com/lesti-fpc-documentationversion-1-4-5/
Other
358 stars 158 forks source link

$cacheTags: which functions need to be adjusted for additional cache tag product price? #246

Closed dataninjato closed 8 years ago

dataninjato commented 8 years ago

if I wanted to add the current product price as an additional cache tag to the function getCatalogProductViewCacheTags. $_product = Mage::getModel('catalog/product')->load($productId)); $cacheTags[] = sha1($_product->getFinalPrice());

Would that be enough to have a new product price automatically a new key and cache-item triggered or is there another spot in the code that would need adjustment?

(the price change is not necessarily due to an magento action which can be observed) I dont mind having to use more keys used and larger cache on disk stored

GordonLesti commented 8 years ago

Hello @marcopolo88 I'm sorry, but I didn't understand what you mean. Why did you want to add the product price as cache tag?

dataninjato commented 8 years ago

pretty sure i had a wrong understanding