From a0c55c054c048cb9a70680337c13e603c041f045 Mon Sep 17 00:00:00 2001 From: o-l-e Date: Thu, 19 Jun 2014 16:12:45 +0200 Subject: [PATCH] Update cache.inc.php Allow thumb and date for each search result as referenced here https://github.com/kolber/stacey/issues/107 This could have other variables too. --- app/cache.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cache.inc.php b/app/cache.inc.php index e7750a8f..aa20bcc0 100644 --- a/app/cache.inc.php +++ b/app/cache.inc.php @@ -68,7 +68,7 @@ function save_full_cache($full_cache, $hash) { } function create_full_cache($pages = null) { - $search_fields = array('url', 'file_path', 'title', 'author', 'content'); + $search_fields = array('url', 'file_path', 'title', 'thumb', 'content', 'date', 'slug'); $store = array(); if (!isset($pages)) $pages = Helpers::file_cache('./content'); foreach ($pages as $page) {