Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean Magento cache by cache tag instead of only the config cache. #19

Open
Vinai opened this issue May 21, 2013 · 0 comments
Open

Clean Magento cache by cache tag instead of only the config cache. #19

Vinai opened this issue May 21, 2013 · 0 comments

Comments

@Vinai
Copy link
Contributor

Vinai commented May 21, 2013

The context MageTest\MagentoExtension\Context\MagentoContext provides the step definition for I clear the cache.
This in fact only clears the Magento configuration cache.
It would be useful to be able to do I clear the "block_html" cache or I clear the complete cache

The class MageTest\MagentoExtension\Service\CacheManager already provides the method addSection().

Reference:

MageTest\MagentoExtension\Context\MagentoContext::theCacheIsClean()
MageTest\MagentoExtension\Service\CacheManager::clear()
MageTest\MagentoExtension\Service\CacheManager::addSection()
MageTest\MagentoExtension\Service\Cache\ConfigurationCache::clear()
alistairstead pushed a commit that referenced this issue Jun 3, 2013
Each cache type can consist of one or more cache tags. This patch uses the cache tags
that have been configured in magento for each cache segment instead of using a single
hardcoded 'config' tag.

This touches on issue #19, but doesn't resolve it completely yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants