Skip to content

Commit

Permalink
Don't forget to flush the relative_url_cache when updating the slug.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Jan 29, 2010
1 parent 98bcb95 commit d4998e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gallery/helpers/gallery_installer.php
Expand Up @@ -479,6 +479,7 @@ static function upgrade($version) {
db::build()
->update("items")
->set("slug", $new_slug)
->set("relative_url_cache", null)
->where("id", "=", $row->id)
->execute();
}
Expand Down

0 comments on commit d4998e3

Please sign in to comment.