home page redis

This commit is contained in:
2021-05-23 03:24:41 +05:00
parent 70e533f971
commit 25cbe852de
2 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ class NameSpaceController extends Controller
$options = config("karudhaas.topic_filters." . $namespace);
$articles = Cache::remember("articles.$namespace", 600, function () use ($options) {
$articles = Cache::store('redis')->remember("articles.$namespace", 600, function () use ($options) {
return Article::with('source')->whereHas('topics', function ($q) use ($options) {
$q->whereIn('slug', $options["keys"]);
})->latest('published_date')->limit(8)->get();