summaryrefslogtreecommitdiff
path: root/urlcache/urlcache.php
diff options
context:
space:
mode:
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();
+
+?>