1

Is it possible in Magento to allow for cache to be cleared in a custom code by using regular expression to target cache tags?

The scenario I have is I am know of a list of cache tags I will be cleaning but they will each have a different suffix on them.

7ochem
7,61516 gold badges54 silver badges82 bronze badges
asked Dec 9, 2013 at 21:53

1 Answer 1

1

If you setup your tags and keys correctly in your custom module, calling

Mage::app()->cleanCache();

Should do what you need, without the ugly regex.

More details:

answered Dec 9, 2013 at 22:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.