diff --git a/app/Caches/FeaturedArticleList.php b/app/Caches/FeaturedArticleList.php index 61d718e2..86507ebe 100644 --- a/app/Caches/FeaturedArticleList.php +++ b/app/Caches/FeaturedArticleList.php @@ -14,13 +14,11 @@ use Phalcon\Mvc\Model\ResultsetInterface; class FeaturedArticleList extends Cache { - protected $lifetime = 86400; + protected $lifetime = 3600; public function getLifetime() { - $tomorrow = strtotime('tomorrow'); - - return $tomorrow - time(); + return $this->lifetime; } public function getKey($id = null) diff --git a/app/Caches/FeaturedCourseList.php b/app/Caches/FeaturedCourseList.php index 8243ce1d..c5c05c58 100644 --- a/app/Caches/FeaturedCourseList.php +++ b/app/Caches/FeaturedCourseList.php @@ -14,13 +14,11 @@ use Phalcon\Mvc\Model\ResultsetInterface; class FeaturedCourseList extends Cache { - protected $lifetime = 86400; + protected $lifetime = 3600; public function getLifetime() { - $tomorrow = strtotime('tomorrow'); - - return $tomorrow - time(); + return $this->lifetime; } public function getKey($id = null) @@ -30,7 +28,7 @@ class FeaturedCourseList extends Cache public function getContent($id = null) { - $limit = 8; + $limit = 5; $courses = $this->findCourses($limit); @@ -71,7 +69,7 @@ class FeaturedCourseList extends Cache * @param int $limit * @return ResultsetInterface|Resultset|CourseModel[] */ - protected function findCourses($limit = 8) + protected function findCourses($limit = 5) { return CourseModel::query() ->where('featured = 1') diff --git a/app/Caches/FeaturedQuestionList.php b/app/Caches/FeaturedQuestionList.php index bbb599fb..9a64b958 100644 --- a/app/Caches/FeaturedQuestionList.php +++ b/app/Caches/FeaturedQuestionList.php @@ -14,13 +14,11 @@ use Phalcon\Mvc\Model\ResultsetInterface; class FeaturedQuestionList extends Cache { - protected $lifetime = 86400; + protected $lifetime = 3600; public function getLifetime() { - $tomorrow = strtotime('tomorrow'); - - return $tomorrow - time(); + return $this->lifetime; } public function getKey($id = null) diff --git a/app/Http/Admin/Views/answer/search.volt b/app/Http/Admin/Views/answer/search.volt index 198944c4..945fb5d7 100644 --- a/app/Http/Admin/Views/answer/search.volt +++ b/app/Http/Admin/Views/answer/search.volt @@ -42,13 +42,6 @@ {% endfor %} -
- -
- - -
-