Update SiteController

This commit is contained in:
Daniel Supernault 2019-08-09 20:56:38 -06:00
parent 3f04fce13f
commit aa7c6632c2
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -43,6 +43,7 @@ class SiteController extends Controller
public function about() public function about()
{ {
return Cache::remember('site:about', now()->addHours(12), function() { return Cache::remember('site:about', now()->addHours(12), function() {
app()->setLocale('en');
$page = Page::whereSlug('/site/about')->whereActive(true)->first(); $page = Page::whereSlug('/site/about')->whereActive(true)->first();
$stats = [ $stats = [
'posts' => Status::whereLocal(true)->count(), 'posts' => Status::whereLocal(true)->count(),