Fix bad movie caching

This commit is contained in:
DariusIII
2018-11-21 23:20:38 +01:00
parent 7f11f3589a
commit cd72b44294
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ class Movie
$catsrch = Category::getCategorySearch($cat);
}
$order = $this->getMovieOrder($orderBy);
$expiresAt = now()->addSeconds(config('nntmux.cache_expiry_medium'));
$expiresAt = now()->addMinutes(config('nntmux.cache_expiry_medium'));
$moviesSql =
sprintf(
"
+1
View File
@@ -1,4 +1,5 @@
2018-11-21 DariusIII
* Fix: Fix bad movie caching
* Chg: Update config/permission.php
* Chg: Update used libraries to their latest versions
* Chg: Update laravel/framework to version 5.7.14
+1 -2
View File
@@ -79,8 +79,7 @@ class MovieController extends BasePageController
$category = $request->has('imdb') ? -1 : Category::MOVIE_ROOT;
if ($id && \in_array($id, array_pluck($mtmp, 'title'), false)) {
$cat = Category::query()
->where('title', $id)
->where('parentid', '=', Category::MOVIE_ROOT)
->where(['title'=> $id, 'parentid' => Category::MOVIE_ROOT])
->first(['id']);
$category = $cat !== null ? $cat['id'] : Category::MOVIE_ROOT;
}
+3 -3
View File
@@ -10,7 +10,7 @@ return [
'echocli' => env('ECHOCLI', true),
'rename_par2' => env('RENAME_PAR2', true),
'rename_music_mediainfo' => env('RENAME_MUSIC_MEDIAINFO', true),
'cache_expiry_short' => env('CACHE_EXPIRY_SHORT', 300),
'cache_expiry_medium' =>env('CACHE_EXPIRY_MEDIUM', 600),
'cache_expiry_long' => env('CACHE_EXPIRY_LONG', 900),
'cache_expiry_short' => env('CACHE_EXPIRY_SHORT', 5),
'cache_expiry_medium' =>env('CACHE_EXPIRY_MEDIUM', 10),
'cache_expiry_long' => env('CACHE_EXPIRY_LONG', 15),
];