diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-25 21:08:24 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-25 21:45:47 -0500 |
commit | 1069d54c85149ff1cb51563d6a1fc471695f8b47 (patch) | |
tree | e5c22762ef4d6c90dcdb3646a04de26e21ad071c /lib/class/stream.class.php | |
parent | cad1380737f7ffcfa82d46ab3066823435a48a5d (diff) | |
download | ampache-1069d54c85149ff1cb51563d6a1fc471695f8b47.tar.gz ampache-1069d54c85149ff1cb51563d6a1fc471695f8b47.tar.bz2 ampache-1069d54c85149ff1cb51563d6a1fc471695f8b47.zip |
Move clean functions into their respective classes
Uniformly name them gc()
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r-- | lib/class/stream.class.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index fd8c23c7..428f5a4a 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -101,19 +101,19 @@ class Stream { } // session_exists /** - * gc_session + * gc * This function performes the garbage collection stuff, run on extend * and on now playing refresh. */ - public static function gc_session() { + public static function gc() { $time = time(); $sql = "DELETE FROM `session_stream` WHERE `expire` < '$time'"; $db_results = Dba::write($sql); - Stream_Playlist::clean(); + Stream_Playlist::gc(); - } // gc_session + } /** * extend_session @@ -132,7 +132,7 @@ class Stream { "WHERE `id`='$sid'"; $db_results = Dba::write($sql); - self::gc_session(); + self::gc(); return true; |