| #
10287e99
|
| 25-Jun-2026 |
Andreas Gohr <andi@splitbrain.org> |
Cache: key on resolved base URL instead of the raw Host header
The instruction (.i), render (.xhtml) and metadata cache keys embedded the client-supplied HTTP_HOST and SERVER_PORT, as did the JS and
Cache: key on resolved base URL instead of the raw Host header
The instruction (.i), render (.xhtml) and metadata cache keys embedded the client-supplied HTTP_HOST and SERVER_PORT, as did the JS and CSS dispatchers. A crawler varying the Host header - or a wiki reachable under several names - thus multiplied every cached artifact per host value, growing the cache directory without bound.
Instructions and metadata never embed resolved URLs, so they drop the host component entirely. Rendered output and the JS/CSS bundles key on DOKU_BASE (plus the SSL flag for JS) instead: fixed when baseurl is configured, and only varying for genuine multi-domain canonical setups. Feeds keep host/port keying since their links are always absolute.
This should address the obvious cases mentioned in #4574
show more ...
|
| #
d4f83172
|
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
code style: line breaks
|
| #
7d34963b
|
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
coding style: control flow line breaks
|
| #
177d6836
|
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
coding style: control flow whitespaces
|
| #
a95427a5
|
| 29-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Apply rector fixes to inc/Cache
|
| #
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 ...
|
| #
72c2bae8
|
| 04-Feb-2019 |
Michael Große <mic.grosse@googlemail.com> |
Fix typo and rename method in comments too
|
| #
42c00b45
|
| 02-Feb-2019 |
Michael Große <mic.grosse@googlemail.com> |
Rename methods to conform with PSR 2
The method _useCache doesn't seem to be in use outside the core cache classes[0], thus no deprecation placeholder was created.
[0]: https://codesearch.dokuwiki.
Rename methods to conform with PSR 2
The method _useCache doesn't seem to be in use outside the core cache classes[0], thus no deprecation placeholder was created.
[0]: https://codesearch.dokuwiki.org/search?project=dokuwiki&project=plugin&project=template&q=&defs=&refs=_useCache&path=&hist=&type=php
show more ...
|
| #
0db5771e
|
| 02-Feb-2019 |
Michael Große <mic.grosse@googlemail.com> |
Refactor cache.php into different files
|