]> sipb.mit.edu Git - ikiwiki.git/commitdiff
on caching
authorUlrik Sverdrup <ulrik.sverdrup@gmail.com>
Fri, 18 Sep 2009 14:08:16 +0000 (16:08 +0200)
committerUlrik Sverdrup <ulrik.sverdrup@gmail.com>
Fri, 18 Sep 2009 14:08:16 +0000 (16:08 +0200)
doc/todo/Resolve_native_reStructuredText_links_to_ikiwiki_pages.mdwn

index aa96fc4315d9b6cf9e32b07ca41348396576d14a..c8d7ba5ed5023273cabb69ec5f16ebd4bbe9da44 100644 (file)
@@ -14,6 +14,12 @@ The page is rST-parsed once in 'scan' and once in 'htmlize' (the first to genera
 > at scan time, you could reuse the cached data at htmlize time for inputs
 > that are the same -- but that could be a very big cache! --[[Joey]] 
 
+>> I would propose using a simple heuristic: If you see `[[` anywhere on the
+>> page, don't cache it. It would be an effective cache for pure-rst wikis
+>> (without any ikiwiki directives or wikilinks).
+>> However, I think that if the cache does not work for a big load, it should
+>> not work at all; small loads are small so they don't matter. --ulrik
+
 Desing issues in general:
 
 We resolve rST links without definition, we don't help resolving defined relative links, so we don't support specifying link name and target separately.