Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
_test/ | 30-Jul-2024 | - | 172 | 106 | ||
conf/ | 30-Jul-2024 | - | 10 | 4 | ||
images/ | 30-Jul-2024 | - | 4 | 3 | ||
lang/ | 30-Jul-2024 | - | 21 | 11 | ||
LICENSE | D | 03-Jun-2023 | 17.7 KiB | 340 | 281 | |
Menuitem.php | D | 03-Jun-2023 | 1.7 KiB | 79 | 37 | |
README.md | D | 03-Jun-2023 | 2.2 KiB | 50 | 31 | |
action.php | D | 03-Jun-2023 | 2.1 KiB | 87 | 37 | |
admin.php | D | 03-Jun-2023 | 1.3 KiB | 63 | 39 | |
helper.php | D | 03-Jun-2023 | 2.2 KiB | 87 | 60 | |
plugin.info.txt | D | 03-Jun-2023 | 204 | 8 | 7 | |
script.js | D | 03-Jun-2023 | 194 | 10 | 2 | |
stale.js | D | 03-Jun-2023 | 2.3 KiB | 74 | 51 | |
style.css | D | 03-Jun-2023 | 59 | 4 | 3 |
README.md
1# Stale Plugin - Making your Dokuwiki Cache Stale 2 3## About 4 5Stale is a [DokuWiki Plugin](https://www.dokuwiki.org/plugin:stale) that aims to delete or make all DokuWiki Cache stale. 6 7For this purpose, it will : 8 * touches all configuration files (ie change only the modified date, not the content) in order to make the rendering cache stale (ie HTML,...) 9 * delete the [sitemap file](https://www.dokuwiki.org/sitemap) if present. 10 11 12## Configuration file touched 13 14The following configuration files are touched: 15 16 17 * the main configuration file: [dokuwiki.php](https://www.dokuwiki.org/config) - [For Geshi](https://forum.dokuwiki.org/d/20833-how-to-make-change-to-geshi-language-file-have-effect-on-page-display/11) 18 * the local configuration file: [local.php](https://www.dokuwiki.org/config) - [Ref: Purging the cache](https://www.dokuwiki.org/devel:caching#purging_the_cache) 19 * all plugin info file [plugin.info.txt](https://www.dokuwiki.org/devel:plugin_info) 20 21> Note that the plugins that are using the cache system, must make the cache dependent of their info file to get the cache stale 22 23Why ? Because these files are cache dependencies and if touched will then prohibit the use of the cache by the next request. 24 25## How to stale ? 26 27You can stale the cache: 28 29 * in the [sitemenu tool](https://www.dokuwiki.org/devel:menus) via the hand icon  30 * in the [admin page](https://www.dokuwiki.org/admin_window) 31 32 33## Release 34 35 * 2023-02-20: 36 * Touch the main configuration file `conf\dokuwiki.php` to delete the cache for [Geshi](https://forum.dokuwiki.org/d/20833-how-to-make-change-to-geshi-language-file-have-effect-on-page-display/11) 37 * 2021-09-04: 38 * As [per request 2](https://github.com/ComboStrap/stale/issues/2), Make the cache stale, reload the page and shows the feedback 39 * 2021-09-01: 40 * Delete the [sitemap](https://www.dokuwiki.org/sitemap) 41 * 2021-08-30: 42 * The stale menu item is now a website item 43 * The action label is more clear and was added as language reference 44 * 2021-08-04: 45 * First release 46 47## Reference 48 49Based on the [dead plugin toucher](https://github.com/anandr/dokuwiki-plugin-toucher/pull/2#issuecomment-809981442) idea. 50