I required to clear all cache including views and database routes context after i called an existing recurring profile action. Placing the following command near the end of the action/function helped me.
It does perform a pattern match and clears all cached data which start with “recurring_profile”. For example, the following files are removed when this function is executed.
It would also delete all related cached data stored in database tables.
There is another function named cache_remove() which i haven’t tried but i guess runs similar to the one above. They call/run it something like:
So, to say, you may clear all cache using:
In fact, to just clear it all, there is cache_clear() which i guess does the trick to clear all cache. There is a $load_backend_if_missing argument passed to this function but i am not sure how it works.
I hope this helps someone.
Hello Friends, I’m Arvind Kumar, founder of Inimist Technologies, Inimist Academy, The Fundabook and many more. I am a Full Stack Web Developer and Programmer by heart, and a Hindi/English blogger by chance. I build Web and Mobile Application around React, VueJS, NodeJS and PHP frameworks.
Have a project in mind? Get in touch