Commit 6b1c5ab5 authored by Jonas Haraldsson's avatar Jonas Haraldsson

add temp limit on slow query

parent 84107bd6
......@@ -215,6 +215,10 @@ class Library_page {
$query .= ' AND streamable=1';
}
/* BEGIN temporary limit query to one month in the past so we dont melt libre.fm server */
$query .= ' AND s.time > ' . (int) (time() - (3600 * 24 * 30));
/* END temporary limit */
$query .= ' GROUP BY s.artist, image';
if($this->sortby) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment