History log of /dokuwiki/inc/Cache/CacheInstructions.php (Results 1 – 7 of 7)
Revision Date Author Comments
# 16999ed1 04-Jun-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_instruction

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.

show more ...


# d4f83172 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: line breaks


# a95427a5 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to inc/Cache


# 033eb35b 29-Feb-2020 kalenpw <kalenpwilliams@gmail.com>

Consistent capilization of io_saveFile and psr-2 formatting


# b4b0b31b 22-Feb-2019 Michael Große <mic.grosse@googlemail.com>

Use deprecation helper

Instead of writing our own magic getters and setters for all variables
that used to be public, this adds a trait that does that in a generic
way.
This trait was copied from Me

Use deprecation helper

Instead of writing our own magic getters and setters for all variables
that used to be public, this adds a trait that does that in a generic
way.
This trait was copied from MediaWiki and adjusted to DokuWiki.
The original author seems to be @tgr Tisza Gergő

The downside of this trait is that the properties keep their
(potentially undesired) name. While that could be fixed within the
helper, that might add unnecessary complexity. The name can change when
support is dropped.

show more ...


# d2f1d7a1 14-Feb-2019 Michael Große <mic.grosse@googlemail.com>

Rename fields and add deprecated __get/__set

These fields might still be accessed from the outside, so in order to
not break backwards compatibility, this uses magic methods that emit
deprecation er

Rename fields and add deprecated __get/__set

These fields might still be accessed from the outside, so in order to
not break backwards compatibility, this uses magic methods that emit
deprecation errors.

show more ...


# 0db5771e 02-Feb-2019 Michael Große <mic.grosse@googlemail.com>

Refactor cache.php into different files