mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update Books class
This commit is contained in:
@@ -223,12 +223,12 @@ class Books
|
||||
$order[0],
|
||||
$order[1]
|
||||
);
|
||||
$return = Cache::get(md5($sql));
|
||||
$return = Cache::get(md5($sql.$page));
|
||||
if ($return !== null) {
|
||||
return $return;
|
||||
}
|
||||
$return = DBFacade::select($sql);
|
||||
if (! empty($return)) {
|
||||
if (\count($return) > 0) {
|
||||
$return['_totalcount'] = $books[0]->total ?? 0;
|
||||
}
|
||||
Cache::put(md5($sql.$page), $return, $expiresAt);
|
||||
|
||||
Reference in New Issue
Block a user