diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 00:18:36 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 00:18:36 -0500 |
commit | 303ff7d64594d154f5d7e26c4bd8beaa321d70dd (patch) | |
tree | 0de71b7330d3be46c6d34f66c550004b876e1991 /lib/class/catalog.class.php | |
parent | 150b6505307b155213d238c0f2705adcdbbb8405 (diff) | |
download | ampache-303ff7d64594d154f5d7e26c4bd8beaa321d70dd.tar.gz ampache-303ff7d64594d154f5d7e26c4bd8beaa321d70dd.tar.bz2 ampache-303ff7d64594d154f5d7e26c4bd8beaa321d70dd.zip |
Catalog::clean() -> Catalog::gc()
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r-- | lib/class/catalog.class.php | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index 4c0d6281..d5bea0ef 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -1003,7 +1003,7 @@ class Catalog extends database_object { } } // foreach songs - self::clean(); + self::gc(); } // update_single_item @@ -1328,7 +1328,7 @@ class Catalog extends database_object { } // Remove any orphaned artists/albums/etc. - self::clean(); + self::gc(); show_box_top(); echo "<strong>"; @@ -1431,7 +1431,7 @@ class Catalog extends database_object { debug_event('verify', "Finished, $total_updated updated in " . $this->name, 5, 'ampache-catalog'); - self::clean(); + self::gc(); $this->update_last_update(); show_box_top(); @@ -1502,11 +1502,12 @@ class Catalog extends database_object { } // _verfiy_chunk /** - * clean + * gc + * * This is a wrapper function for all of the different cleaning - * functions, it runs them in the correct order + * functions, it runs them in an order that resembles correct */ - public static function clean() { + public static function gc() { debug_event('catalog', 'Database cleanup started', 5, 'ampache-catalog'); Song::gc(); @@ -1522,7 +1523,7 @@ class Catalog extends database_object { Tag::gc(); debug_event('catalog', 'Database cleanup ended', 5, 'ampache-catalog'); - } // clean + } /** * optimize_tables @@ -2104,8 +2105,8 @@ class Catalog extends database_object { $sql = "DELETE FROM `catalog` WHERE `id` = '$catalog_id'"; $db_results = Dba::write($sql); - // Run the Aritst/Album Cleaners... - self::clean($catalog_id); + // Run the cleaners... + self::gc(); } // delete |