Searched hist:"16999 ed115e8a9df3ce15f1efe7e4423b925c1d2" (Results 1 – 4 of 4) sorted by relevance
| /dokuwiki/_test/tests/Parsing/ |
| H A D | SyntaxOverrideTest.php | 16999ed115e8a9df3ce15f1efe7e4423b925c1d2 Thu Jun 04 12:28:54 UTC 2026 Andreas Gohr <gohr@cosmocode.de> parserutils: allow callers to override the parse syntax, key cache on it
With the registry now carrying the flavour as a parameter, expose that to callers: p_get_instructions(), p_cached_instructions() and p_cached_output() gain an optional $syntax argument. null (the default) means "use the configured $conf['syntax']", preserving behaviour for every existing call site; an explicit flavour parses under it regardless of the wiki's configured preference.
This is what lets bundled assets render deterministically — e.g. a plugin forcing 'dw' on a document whose configured syntax is 'md'.
Because that case renders the same file under two flavours within one request, key both the in-request memo (the $run map) and the on-disk cache on $syntax so the two do not collide. The syntax enters the cache key only when passed explicitly (non-null); when null the key is unchanged, so existing caches are untouched. Plumbed through new optional $syntax args on CacheParser / CacheInstructions, appended to the key string.
|
| /dokuwiki/inc/Cache/ |
| H A D | CacheInstructions.php | 16999ed115e8a9df3ce15f1efe7e4423b925c1d2 Thu Jun 04 12:28:54 UTC 2026 Andreas Gohr <gohr@cosmocode.de> parserutils: allow callers to override the parse syntax, key cache on it
With the registry now carrying the flavour as a parameter, expose that to callers: p_get_instructions(), p_cached_instructions() and p_cached_output() gain an optional $syntax argument. null (the default) means "use the configured $conf['syntax']", preserving behaviour for every existing call site; an explicit flavour parses under it regardless of the wiki's configured preference.
This is what lets bundled assets render deterministically — e.g. a plugin forcing 'dw' on a document whose configured syntax is 'md'.
Because that case renders the same file under two flavours within one request, key both the in-request memo (the $run map) and the on-disk cache on $syntax so the two do not collide. The syntax enters the cache key only when passed explicitly (non-null); when null the key is unchanged, so existing caches are untouched. Plumbed through new optional $syntax args on CacheParser / CacheInstructions, appended to the key string.
|
| H A D | CacheParser.php | 16999ed115e8a9df3ce15f1efe7e4423b925c1d2 Thu Jun 04 12:28:54 UTC 2026 Andreas Gohr <gohr@cosmocode.de> parserutils: allow callers to override the parse syntax, key cache on it
With the registry now carrying the flavour as a parameter, expose that to callers: p_get_instructions(), p_cached_instructions() and p_cached_output() gain an optional $syntax argument. null (the default) means "use the configured $conf['syntax']", preserving behaviour for every existing call site; an explicit flavour parses under it regardless of the wiki's configured preference.
This is what lets bundled assets render deterministically — e.g. a plugin forcing 'dw' on a document whose configured syntax is 'md'.
Because that case renders the same file under two flavours within one request, key both the in-request memo (the $run map) and the on-disk cache on $syntax so the two do not collide. The syntax enters the cache key only when passed explicitly (non-null); when null the key is unchanged, so existing caches are untouched. Plumbed through new optional $syntax args on CacheParser / CacheInstructions, appended to the key string.
|
| /dokuwiki/inc/ |
| H A D | parserutils.php | 16999ed115e8a9df3ce15f1efe7e4423b925c1d2 Thu Jun 04 12:28:54 UTC 2026 Andreas Gohr <gohr@cosmocode.de> parserutils: allow callers to override the parse syntax, key cache on it
With the registry now carrying the flavour as a parameter, expose that to callers: p_get_instructions(), p_cached_instructions() and p_cached_output() gain an optional $syntax argument. null (the default) means "use the configured $conf['syntax']", preserving behaviour for every existing call site; an explicit flavour parses under it regardless of the wiki's configured preference.
This is what lets bundled assets render deterministically — e.g. a plugin forcing 'dw' on a document whose configured syntax is 'md'.
Because that case renders the same file under two flavours within one request, key both the in-request memo (the $run map) and the on-disk cache on $syntax so the two do not collide. The syntax enters the cache key only when passed explicitly (non-null); when null the key is unchanged, so existing caches are untouched. Plumbed through new optional $syntax args on CacheParser / CacheInstructions, appended to the key string.
|