From 809e555be83513eb2965881a32f44a0ba855a566 Mon Sep 17 00:00:00 2001 From: "cyeh%bluemartini.com" <> Date: Tue, 27 Feb 2001 07:25:22 +0000 Subject: 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. --- editkeywords.cgi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'editkeywords.cgi') 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.
\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
"; + +} + + -- cgit v1.2.3-24-g4f1b