[gimp-web/testing] Set pelicanconf.local.py to use a cache
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Set pelicanconf.local.py to use a cache
- Date: Wed, 25 Jan 2017 17:44:21 +0000 (UTC)
commit b7cc599d5d5817648b4bb96470f94837f67ff9da
Author: Pat David <patdavid gmail com>
Date: Wed Jan 25 11:41:58 2017 -0600
Set pelicanconf.local.py to use a cache
Previously, pelicanconf.local.py was deleting the build directory
before building the site. This was mainly for testing purposes
while designing the site, and is not really needed now.
I've set it to _not_ delete the build directory automatically.
I've also set it to use the cache to speed up subsequent builds -
this should be helpful when writing new pages and not wanting to
wait as long for a rebuild to check things.
pelicanconf.local.py | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index 32799a7..e280323 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -104,7 +104,7 @@ INDEX_SAVE_AS = "/news/index.html"
TYPOGRIFY = True
TYPOGRIFY_IGNORE_TAGS = ['title']
-DELETE_OUTPUT_DIRECTORY = True
+#DELETE_OUTPUT_DIRECTORY = True
MD_EXTENSIONS = ['fenced_code', 'codehilite(css_class=codehilite)', 'extra', 'headerid',
'toc(permalink=True)']
@@ -123,6 +123,19 @@ RELATIVE_URLS = True
#
+# Caching build for faster regeneration
+#
+
+LOAD_CONTENT_CACHE = True
+CHECK_MODIFIED_METHOD = 'mtime'
+CACHE_CONTENT = True
+
+
+###########################################################
+# Functions below for pushing data to the build system
+###########################################################
+
+#
# Parse the GIMP_VERSIONS json file for use around the site
# (mostly the /downloads/index.html page)
#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]