Skip to main content

How to refresh the cache programatically in magento 1 EE

What is the code for clean or refresh the cache programmatically because I have got lots of snippets but all are not working in Magento 1 enterprise edition.

Does anyone know how to solve it? Thanks in advance.