aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2001-02-27 07:25:22 +0000
committercyeh%bluemartini.com <>2001-02-27 07:25:22 +0000
commit809e555be83513eb2965881a32f44a0ba855a566 (patch)
tree8307c6b09411659440f07a4e6ebdc0a9cf606efe /editkeywords.cgi
parentfix for bug 51670: Dependency loops are possible (diff)
downloadbugzilla-809e555be83513eb2965881a32f44a0ba855a566.tar.gz
bugzilla-809e555be83513eb2965881a32f44a0ba855a566.tar.bz2
bugzilla-809e555be83513eb2965881a32f44a0ba855a566.zip
stupid lamo fix for 69621: Keyword cache not updated on keyword rename/delete.
now give warning to admin that keyword cache should be rebuilt after any keyword edit or deletion.
Diffstat (limited to 'editkeywords.cgi')
-rwxr-xr-xeditkeywords.cgi14
1 files changed, 14 insertions, 0 deletions
diff --git a/editkeywords.cgi b/editkeywords.cgi
index d76c8d372..a58efb02c 100755
--- a/editkeywords.cgi
+++ b/editkeywords.cgi
@@ -334,6 +334,7 @@ if ($action eq 'update') {
print "Keyword updated.<BR>\n";
+ &RebuildCacheWarning;
# Make versioncache flush
unlink "data/versioncache";
@@ -382,6 +383,7 @@ to delete the <code>$name</code> keyword?
print "Keyword $name deleted.\n";
+ &RebuildCacheWarning;
# Make versioncache flush
unlink "data/versioncache";
@@ -395,3 +397,15 @@ print "I don't have a clue what you want.<BR>\n";
foreach ( sort keys %::FORM) {
print "$_: $::FORM{$_}<BR>\n";
}
+
+
+
+sub RebuildCacheWarning {
+
+ print "<BR><BR><B>You have deleted or modified a keyword. You must rebuild the keyword cache!<BR></B>";
+ print "You can rebuild the cache using sanitycheck.cgi. On very large installations of Bugzilla,<BR>";
+ print "This can take several minutes.<BR><BR><B><A HREF=sanitycheck.cgi?rebuildkeywordcache=1>Rebuild cache</HREF><BR></B>";
+
+}
+
+