summaryrefslogtreecommitdiff
path: root/urlcache/urlcache.php
diff options
context:
space:
mode:
authorChristian Schneider2006-10-26 13:35:12 +0000
committerChristian Schneider2006-10-26 13:35:12 +0000
commita5a19fd672bc0b8113d620669b557f17dccd343a (patch)
tree876ba4fec8362ac2e9374f61b9b7f67fcd2b8e59 /urlcache/urlcache.php
downloaditools-a5a19fd672bc0b8113d620669b557f17dccd343a.tar.gz
itools-a5a19fd672bc0b8113d620669b557f17dccd343a.tar.bz2
itools-a5a19fd672bc0b8113d620669b557f17dccd343a.zip
Moved itools to live branch
Diffstat (limited to 'urlcache/urlcache.php')
-rw-r--r--urlcache/urlcache.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/urlcache/urlcache.php b/urlcache/urlcache.php
new file mode 100644
index 0000000..fb6fd33
--- /dev/null
+++ b/urlcache/urlcache.php
@@ -0,0 +1,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();
+
+?>