From: cyeh%bluemartini.com <> Date: Tue, 27 Feb 2001 07:25:22 +0000 (+0000) Subject: stupid lamo fix for 69621: Keyword cache not updated on keyword rename/delete. X-Git-Tag: bugzilla-2.12~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=809e555be83513eb2965881a32f44a0ba855a566;p=thirdparty%2Fbugzilla.git 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. --- diff --git a/editkeywords.cgi b/editkeywords.cgi index d76c8d3728..a58efb02c9 100755 --- a/editkeywords.cgi +++ b/editkeywords.cgi @@ -334,6 +334,7 @@ if ($action eq 'update') { print "Keyword updated.
\n"; + &RebuildCacheWarning; # Make versioncache flush unlink "data/versioncache"; @@ -382,6 +383,7 @@ to delete the $name 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.
\n"; foreach ( sort keys %::FORM) { print "$_: $::FORM{$_}
\n"; } + + + +sub RebuildCacheWarning { + + print "

You have deleted or modified a keyword. You must rebuild the keyword cache!
"; + print "You can rebuild the cache using sanitycheck.cgi. On very large installations of Bugzilla,
"; + print "This can take several minutes.

Rebuild cache
"; + +} + +