diff piecrust/page.py @ 876:d1095774bfcf

refactor: Fix some issues with record/cache entry collisions, add counters.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 15 Jun 2017 07:33:40 -0700
parents 9bb22bbe093c
children 1bb704434ee2
line wrap: on
line diff
--- a/piecrust/page.py	Thu Jun 15 07:32:19 2017 -0700
+++ b/piecrust/page.py	Thu Jun 15 07:33:40 2017 -0700
@@ -306,6 +306,8 @@
         'content': json_save_segments(content)}
     cache.write(cache_path, json.dumps(cache_data))
 
+    app.env.stats.stepCounter('PageLoads')
+
     return config, content, False