summaryrefslogtreecommitdiff
path: root/urlcache/urlcache.php
blob: fb6fd3370beb5d4bfbc09d0181af6ed0028cb933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/www/server/bin/php -q
<?php
/*
**	$Id$
**
**      ITools - the Internet Tools Library
**
**      Copyright (C) 1995-2003 by the ITools Authors.
**      This program is free software; you can redistribute it and/or
**      modify it under the terms of either the GNU General Public License
**      or the GNU Lesser General Public License, as published by the Free
**      Software Foundation. See http://www.gnu.org/licenses/ for details.
**
**	cacher.php - Script to be called from crontab to keep url cache up-to-date
*/

set_time_limit(4 * 60);

require("itools/itools.lib");
require("itools/urlcache.lib");

$it_debug = new it_debug(10, "weber@search.ch");
$it_db = new it_db("urlcache", "urlcache", "JKhsad34H");
$table = new it_db_table($it_db, "urlcache");
$it_urlcache = new it_urlcache($table, "url");
$it_urlcache->update_cache();

?>