Skip to content
Permalink
Browse files

make cache ignores directly affect the map

  • Loading branch information...
following
following committed May 4, 2013
1 parent 8e7a127 commit 394099649e7811a04be06a8228443258372fe563
Showing with 10 additions and 0 deletions.
  1. +10 −0 htdocs/ignore.php
@@ -36,5 +36,15 @@
break;
}
// clear cached map result, so that the change directly appears on the map
$map_result_id = sql_value("SELECT `result_id` FROM `map2_result`
WHERE INSTR(sqlquery,\"`user_id`='" . sql_escape($login->userid) . "'\")
LIMIT 1", 0);
if ($map_result_id)
{
sql("DELETE FROM `map2_result` WHERE `result_id`='&1'", $map_result_id);
sql("DELETE FROM `map2_data` WHERE `result_id`='&1'", $map_result_id);
}
$tpl->redirect('viewcache.php?cacheid=' . ($cache_id+0));
?>

0 comments on commit 3940996

Please sign in to comment.
You can’t perform that action at this time.