views:

52

answers:

2

Can any one please let me know, that, i need to clear the "temp" files every time i run the ajax process using php.

+1  A: 

To avoid caching, you can append a unique number to the URL, e.g.

var url = 'something.php?' + +new Date;
url; // => "something.php?1273750710315"
J-P
+1  A: 

hi you please try this code on your header.tpl file. or use this as server side script. see here.

<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="Tue,01 Dec 1990 06:30:00 GMT">

or

echo '<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="Tue,01 Dec 1990 06:30:00 GMT">';
Chakrapani