2a9f593c9703d356e8a1380662539cc2191f251a
[atutor.git] / docs / include / phpCache / gc.php
1 <?
2 /*
3    phpCache v1.4 - PHP caching engine 
4    Copyright (C) 2001 Nathan <nathan@0x00.org> 
5
6    This program is free software; you can redistribute it and/or
7    modify it under the terms of the GNU General Public License
8    as published by the Free Software Foundation; either version 2
9    of the License, or (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19 */
20
21 /* This script should be run periodically via a cron job or by hand.  phpCache *WILL* try to clean up the cache on its own, but it does not do a full pass of the entire cache structure like this does.  Running this once a day is recommended.  */
22
23         set_time_limit(0);
24         include("phpCache.inc");
25         $ret=cache_gc();
26         print "cache_gc(): $ret\n";
27 ?>