This is an old revision of the document!
Table of Contents
Refactoring 2022
Update of this page is in Progress
This page lists changes since August 2022. For older changes see refactor2021 and refactor2020.
Welcome to add more notes/examples/etc on this page, to make updating of plugins and templates easy! Please share all remarks and possible improvements. See forum topic. Thank you very much! Klap-in |
---|
How to find deprecated code
A lot of code has been marked as deprecated. Which means it will be removed in future releases of DokuWiki. While this does (normally) not cause plugins to malfunction now, it may lead to nasty surprises after future updates.
Plugin/template authors can easily check if they use any deprecated functions, classes or methods:
- enable the allowdebug setting in the Configuration Manager
- use the plugin
- Check logs for any information about deprecated calls caused by the plugin:
- Up to the Summer 2020 “Hogfather” release: check
data/cache/debug.log
. - Since the Summer 2022 “Igor” release: check
data/log/deprecated/<date>.log
Refactor fulltext search functions and class Doku_Indexer
Following Functions will be Deprecated:
Indexer: idx_get_version, idx_addPage, idx_getIndex, idx_listIndexLengths, idx_indexLengths, idx_get_indexer
MetadataIndex: ft_pageLookup, ft_mediainuse, ft_backlinks,
FulltextIndex: ft_pageSearch, ft_snippet, ft_snippet_re_preprocess, ft_queryParser, ft_queryUnparser_simple