Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
82436047
Commit
82436047
authored
May 12, 2014
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1002357: memached->clear_config isn't always called where required
r=dkl, a=glob
parent
ffaf79a2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
Field.pm
Bugzilla/Field.pm
+2
-0
Group.pm
Bugzilla/Group.pm
+1
-0
Milestone.pm
Bugzilla/Milestone.pm
+2
-2
Product.pm
Bugzilla/Product.pm
+3
-0
No files found.
Bugzilla/Field.pm
View file @
82436047
...
...
@@ -1058,6 +1058,7 @@ sub create {
$field
->
_update_visibility_values
();
$dbh
->
bz_commit_transaction
();
Bugzilla
->
memcached
->
clear_config
();
if
(
$field
->
custom
)
{
my
$name
=
$field
->
name
;
...
...
@@ -1096,6 +1097,7 @@ sub update {
$dbh
->
do
(
"UPDATE "
.
$self
->
name
.
" SET visibility_value_id = NULL"
);
}
$self
->
_update_visibility_values
();
Bugzilla
->
memcached
->
clear_config
();
return
$changes
;
}
...
...
Bugzilla/Group.pm
View file @
82436047
...
...
@@ -216,6 +216,7 @@ sub update {
Bugzilla::Hook::
process
(
'group_end_of_update'
,
{
group
=>
$self
,
changes
=>
$changes
});
$dbh
->
bz_commit_transaction
();
Bugzilla
->
memcached
->
clear_config
();
return
$changes
;
}
...
...
Bugzilla/Milestone.pm
View file @
82436047
...
...
@@ -113,10 +113,10 @@ sub update {
$dbh
->
do
(
'UPDATE products SET defaultmilestone = ?
WHERE id = ? AND defaultmilestone = ?'
,
undef
,
(
$self
->
name
,
$self
->
product_id
,
$changes
->
{
value
}
->
[
0
]));
Bugzilla
->
memcached
->
clear
({
table
=>
'produles'
,
id
=>
$self
->
product_id
});
Bugzilla
->
memcached
->
clear_config
();
Bugzilla
->
memcached
->
clear
({
table
=>
'products'
,
id
=>
$self
->
product_id
});
}
$dbh
->
bz_commit_transaction
();
Bugzilla
->
memcached
->
clear_config
();
return
$changes
;
}
...
...
Bugzilla/Product.pm
View file @
82436047
...
...
@@ -102,6 +102,7 @@ sub create {
Bugzilla::Hook::
process
(
'product_end_of_create'
,
{
product
=>
$product
});
$dbh
->
bz_commit_transaction
();
Bugzilla
->
memcached
->
clear_config
();
return
$product
;
}
...
...
@@ -258,6 +259,7 @@ sub update {
# Changes have been committed.
delete
$self
->
{
check_group_controls
};
Bugzilla
->
user
->
clear_product_cache
();
Bugzilla
->
memcached
->
clear_config
();
return
$changes
;
}
...
...
@@ -316,6 +318,7 @@ sub remove_from_db {
$self
->
SUPER::
remove_from_db
();
$dbh
->
bz_commit_transaction
();
Bugzilla
->
memcached
->
clear_config
();
# We have to delete these internal variables, else we get
# the old lists of products and classifications again.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment