44 views

Clear Cache in php

How to Clear Cache in php using header();

  1. header(‘Expires: Mon, 26 Jul 1997 05:00:00 GMT’);
  2. header(‘Last-Modified: ‘ . gmdate(‘D, d M Y H:i:s’) . ‘ GMT’);
  3. header(‘Cache-Control: no-store, no-cache, must-revalidate’);
  4. header(‘Cache-Control: post-check=0, pre-check=0′, false);
  5. header(‘Pragma: no-cache’);

Post a Comment

You must be logged in to post a comment.