| Commit message (Collapse) | Author | Age |
| |
|
|\
| |
| | |
Cosmetic changes in tpl_getFavicon()
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a new rendering limit of currently 5 pages to the
p_get_metadata function. This means that in one request not more than 3
pages will be parsed/rendered. Pages for which the cache can be used
aren't counted. This should make the new cache modes safe to use and
should provide backwards compatibility while keeping the advantage of
rendering metadata on demand (i.e. imagine one included page out of 10
is updated, then the metadata for that page can be rendered, but when
you request a purge of the cache not 10 pages are rendered).
In this commit most of the changes to the p_get_first_heading function
are reverted and the title index is no longer used. This makes the first
heading functionality no longer depends on the search index of DokuWiki.
Maybe it can be added again later when the indexer provides a proper API
for getting metadata values for all or selected pages. The performance
of the p_get_first_heading function should be almost back to the
performance in Anteater as the simple cache of p_get_metadata is used
and also the limit of p_get_metadata is of course applied.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes the cache logic for metadata. It introduces a new mode that
tries to avoid rendering the page again for simple requests but still
updates the metadata when the page has been changed (but not when the
cache timeout has been reached or purge is used). It simply compares the
time of the last rendering with the last modified time of the page.
The old boolean $render parameter has been changed into an int with
three possible values. Compatibility for the old parameter is provided
using a check with is_numeric using the following mapping:
- false is still don't render (0 is the new value for that)
- true is using that new render logic which means that many plugins will
still work unchanged even if they request a lot of data using
$render=true (1 is the new value for that providing full compatibility
in the case 1 has been used instead of true)
The default value for p_get_first_heading is now that new simple cache
logic, the default value for getting metadata is the cache logic which
should be used with care but is the only way to request (rendered)
metadata that can change because of plugin installations or upgrades.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
With this test it should be possible to detect if the search index has
been corrupted by using Rincewind RC or a git version of the weeks
before the RC release.
|
|
|
|
| |
This works around a new "feature/bug" of Firefox 4.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The bug that is fixed here may have corrupted your search index in a way
that it produces wrong or missing results and won't be fixed
automatically. This occurs when you have deleted the last occurrence of
a word that has been on the last line of one of the word indexes. A
functionality for checking for a broken search index will be added.
The index can be fixed by deleting it completely (remove all .idx files
in data/index/) and recreating it using bin/indexer.php -c. The
searchindex plugin will be updated to be able to do the same, soon.
|
| |
|
| |
|
| |
|
|
|
|
| |
FS#2242
|
| |
|
|\
| |
| | |
fixed location of favicon in feed.php (FS#2232)
|
|/ |
|
|
|
|
| |
The pure PHP implementation for smd5 failed.
|
|\
| |
| | |
language updates: update.dokuwiki.org is currently used for update/msg-checks
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| | |
de/eu - language updates / tpl_getfavicon()
|
| | |
|
| |\ |
|
| | | |
|
| | | |
|
| | | |
|
| |/
|/|
| |
| |
| | |
The value is still passed by reference as the parameter of the called
function is declared as reference.
|
|/
|
|
|
|
| |
When the search index is empty, there was a warning and no headings were
displayed. Now the headings are displayed and there is no warning
anymore.
|
|
|
|
|
|
| |
The page lookup by title has been case insensitive before the indexer
rewrite, since then it has been case sensitive, this makes it case
insensitive again.
|
| |
|
|
|
|
|
|
| |
Before this change all pages of the given namespace have been included
in the result, now the search is restricted to the namespace again as it
was before the new indexer has been implemented.
|
| |
|
|
|
|
|
| |
If no HTML element with the id wiki__text exists, locktimer.init led to a
JavaScript error.
|
| |
|
|
|
|
| |
Metadata is rendered now in the indexer when it's cache is invalid.
|
| |
|
| |
|
|\ |
|
| |\ |
|
| | | |
|
| | | |
|
| |/
|/|
| |
| |
| |
| | |
This reverts commit 342e58c8c048bfd5f57f10bd88cee95aa2732e96.
The options code had already been fixed. My mistake.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We disabled the media options shortly before the last release because of
an unfixed bug. The disabling was not complete which caused problems
with templates not incorporating the needed CSS.
Since the option dialog hasn't been fixed yet, this patch also disables
the creation of the corresponding HTML to avoid the mentioned template
problems.
|
| | |
|