utility to update the sort cache for data queries (will be integrated into the 0.8.6 install file)

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1577 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
Ian Berry committed 2004-06-08 18:42:59 +00:00
1 parent df17070f2b
commit 563e713974
1 file changed
+14
+14
View File
@@ -0,0 +1,14 @@
<?php
$no_http_headers = true;
include("../include/config.php");
include("../lib/data_query.php");
$host_snmp_query = db_fetch_assoc("select host_id,snmp_query_id from host_snmp_query");
if (sizeof($host_snmp_query) > 0) {
foreach ($host_snmp_query as $item) {
update_data_query_sort_cache($item["host_id"], $item["snmp_query_id"]);
}
}
?>