diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-10 09:11:22 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-10 09:11:22 +0000 |
commit | 65912668d225fd72a8efb9f73520609523be400b (patch) | |
tree | f90972e0bf112b21e460d5d870ecf7d4af486b98 /lib/class/tmpplaylist.class.php | |
parent | dfcd869f3748132755de63db9e7eabb6dee41af1 (diff) | |
download | ampache-65912668d225fd72a8efb9f73520609523be400b.tar.gz ampache-65912668d225fd72a8efb9f73520609523be400b.tar.bz2 ampache-65912668d225fd72a8efb9f73520609523be400b.zip |
decided to not try to detect the charset, its just such a pain in the ass and I have no figured out a way to actually get it right, reduced frequency of prune calls to speed up login
Diffstat (limited to 'lib/class/tmpplaylist.class.php')
-rw-r--r-- | lib/class/tmpplaylist.class.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/class/tmpplaylist.class.php b/lib/class/tmpplaylist.class.php index 050d6211..a0654a2a 100644 --- a/lib/class/tmpplaylist.class.php +++ b/lib/class/tmpplaylist.class.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2007 Ampache.org + Copyright (c) Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -213,8 +213,11 @@ class tmpPlaylist { $id = Dba::insert_id(); - /* Prune dead tmp_playlists */ - self::prune_playlists(); + $do_prune = rand(0,4); + if ($do_prune%2) { + self::prune_playlists(); + self::prune_tracks(); + } /* Clean any other playlists assoicated with this session */ self::delete($sessid,$id); |