In my Drupal 7 Website, I have called an Ajax function by the click of a button to do some Database modifications by different queries. Everything goes well but in the end I need to remove the cache also via code. My file is in /templates folder. I have tried various search functions of drupal to clear cache but nothing works.
Can any drupal 7 expert guide that how to clear the cache.
Note: I am working on my custom functionality to Revert the Page contents to the last state. Everything goes well but when I clear the cache then user will be able to see fresh content otherwise not. So I need to clear cache via my ajax code.
Looking forward for reply.