3

How i can clean cache programmatically for only one store ?

and refresh index for only one store ?

1

There is no way since the cache is not related to a store but to the entire installation. The same affirmation applies for indexes.

| improve this answer | |
  • And if i modify all cache key, and i develop script for clean all key with this store id? :) – Flo69 Jul 30 '14 at 15:48
  • Sure, you can try that. At this moment is not possible nor explored as far as i know. – mbalparda Jul 30 '14 at 15:57
1

It's realy easy with store code and store id.

After check all cache key, you can clean

$storeCacheTag = strtoupper(Mage_Core_Model_Store::CACHE_TAG.'_' . $store->getCode());
Mage::app()->getCacheInstance()->clean($storeCacheTag);
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.