Files
ntspi-app/app/Containers/Education/Tasks/GetSeoForCurrentPageTask.php
T
2026-03-20 21:47:02 +05:00

18 lines
463 B
PHP
Executable File

<?php
namespace App\Containers\Education\Tasks;
use App\Ship\Contracts\SeoServiceInterface;
use Illuminate\Support\Facades\Cache;
class GetSeoForCurrentPageTask
{
public function run(SeoServiceInterface $seoPageProvider)
{
$cacheKeySeo = 'education_programs_seo';
return Cache::remember($cacheKeySeo, now()->addDay(), function () use ($seoPageProvider) {
return $seoPageProvider->getSeoForCurrentPage();
});
}
}