| #
71726d78
|
| 30-Aug-2006 |
Ben Coburn <btcoburn@silicodon.net> |
scalable changelog redesign
This patch provides a rewritten changelog system that is designed to run efficiently on both small and large wikis. The patch includes a plugin to convert changelogs from
scalable changelog redesign
This patch provides a rewritten changelog system that is designed to run efficiently on both small and large wikis. The patch includes a plugin to convert changelogs from the current format. The conversion is non-destructive and happens automatically. For more information on the new changelog format see "http://wiki.splitbrain.org/wiki:changelog".
Structure In short the changelog is now stored in per-page changelog files, with a recent changes cache. The recent changes cache is kept in "/data/meta/_dokuwiki.changes" and trimmed daily. The per-page changelogs are kept in "/data/meta/<ns>/<page_id>.changes" files. To preserve revision information for revisions stored in the attic, the "*.changes" files are not removed when their page is deleted. This allows the full life-cycle of page creation, deletion, and reversion to be tracked.
Format The changelog line format now uses a general "line type" field in place of the special "minor" change syntax. There is also an extra field that can be used to store arbitrary data associated with special line types. The reverted line type (R) is a good example. There the extra field holds the revision date used as the source for reverting the page. See the wiki for the complete syntax description.
Code Notes The changelog functions have been rewritten to load the whole file only if it is small. For larger files, the function loads only the relevant chunk(s). Parsed changelog lines are cached in memory to speed future function calls.
getRevisionInfo A binary search is used to locate the chunk expected to contain the requested revision. The whole chunk is parsed, and adjacent lines are optimistically cached to speed consecutive calls.
getRevisions Reads the changelog file backwards (newest first) in chunks until the requested number of lines have been read. Parsed changelog lines are cached for subsequent calls to getRevisionInfo. Because revisions are read from the changelog they are no longer guaranteed to exist in the attic.
(Note: Even with lines of arbitrary length getRevisionInfo and getRevisions never split changelog lines while reading. This is done by sliding the "file pointer" forward to the end of a line after each blind seek.)
isMinor Removed. To detect a minor edit check the type as follows: $parsed_logline['type']
darcs-hash:20060830182753-05dcb-1c5ea17f581197a33732a8d11da223d809c03506.gz
show more ...
|
| #
19a32233
|
| 29-Aug-2006 |
chris <chris@jalakai.co.uk> |
further update to global memory cache arrays
- remove initialisation of caches in inc/pageutils.php - add global declaration to init.php to support init.php being included from within a function,
further update to global memory cache arrays
- remove initialisation of caches in inc/pageutils.php - add global declaration to init.php to support init.php being included from within a function, e.g. unit testing
;-)
- minor change to utf8_substr, remove non-essential brackets added as part of an earlier patch
darcs-hash:20060829134806-9b6ab-ab15191344a83be664c412403dc84a24fa2253a2.gz
show more ...
|
| #
50602150
|
| 28-Aug-2006 |
Ben Coburn <btcoburn@silicodon.net> |
init global memory cache arrays
Update to 'add function result caching for cleanID and wikiFN'. Makes certain that arrays exist for the caches, without checking on each function call. Properly creat
init global memory cache arrays
Update to 'add function result caching for cleanID and wikiFN'. Makes certain that arrays exist for the caches, without checking on each function call. Properly create multidimensional arrays in wikiFN().
darcs-hash:20060828071205-05dcb-7c8dbdb5ea4e7b73808ec3bd9222df1b837d3a1f.gz
show more ...
|
| #
fe893490
|
| 25-Aug-2006 |
Andreas Gohr <andi@splitbrain.org> |
typo fix for compression check
darcs-hash:20060825174755-7ad00-e67f267dd1552ba22b01662de6dbb84faf33e5f8.gz
|
| #
501252a5
|
| 25-Aug-2006 |
Andreas Gohr <andi@splitbrain.org> |
compression fallback
This updates the availability check of the choosen compression method. If bzip2 is configured but not available it falls back to gzip if available.
darcs-hash:20060825144739-7a
compression fallback
This updates the availability check of the choosen compression method. If bzip2 is configured but not available it falls back to gzip if available.
darcs-hash:20060825144739-7ad00-9f7ce54fd1dbf0d7a8272393e9bc02d862b28fff.gz
show more ...
|
| #
03c4aec3
|
| 04-Aug-2006 |
chris <chris@jalakai.co.uk> |
unittest fixes
darcs-hash:20060804142243-9b6ab-d208f7f1a67a9958fda05c519c8407ad5e733cea.gz
|
| #
69dc3177
|
| 29-Jul-2006 |
Andreas Gohr <andi@splitbrain.org> |
init_paths points to the installer now
darcs-hash:20060729144035-7ad00-41ec3091bfda9bded254bd5a1ca7d3a4003a0116.gz
|
| #
bad905f1
|
| 07-Jul-2006 |
Ben Coburn <btcoburn@silicodon.net> |
error reporting E_ALL switch
- Adds a constant DOKU_E_LEVEL for globally overriding the error reporting level. - Adds a file based switch for enabling E_ALL errors without changing the code.
Th
error reporting E_ALL switch
- Adds a constant DOKU_E_LEVEL for globally overriding the error reporting level. - Adds a file based switch for enabling E_ALL errors without changing the code.
This is convenient for developers debugging new patches. It also ensures that the new patch will not accidentally record manual changes to the error reporting level. To enable E_ALL errors globally, create the file 'conf/report_e_all'.
darcs-hash:20060707232525-05dcb-0f24e53783f546a83268fe40b0d8b68f4d6ccfa6.gz
show more ...
|
| #
488d5fa0
|
| 29-May-2006 |
Michael Klier chi@chimeric.de <andi@splitbrain.org> |
enhanced getBaseURL()
darcs-hash:20060529154201-484ab-42382d9bd2bac83f84226209027001ca1f6deff0.gz
|
| #
3138b5c7
|
| 19-May-2006 |
Andreas Gohr <andi@splitbrain.org> |
moved gzip compression to init.php
darcs-hash:20060519212751-7ad00-ace54b61706fdf4f1b7c2abdbabee215a1e256ab.gz
|
| #
3aee4c27
|
| 07-May-2006 |
Andreas Gohr <andi@splitbrain.org> |
changed all occurances of rename() to io_rename()
darcs-hash:20060507101333-7ad00-e687d797fbee26e0b0bc7741ff8a1af496c101bf.gz
|
| #
a609a9cc
|
| 24-Mar-2006 |
Ben Coburn <btcoburn@silicodon.net> |
show page generation time
darcs-hash:20060324032426-05dcb-cca609254cfef5b583510b86904f1656dea98fc7.gz
|
| #
9f3cdec3
|
| 07-Mar-2006 |
Andreas Gohr <andi@splitbrain.org> |
fallback if umask() call doesn't work FS#736
darcs-hash:20060307184135-7ad00-9acd0c9e78976d348ae728dc491a7b7cebf5dd9d.gz
|
| #
1ca31cfe
|
| 04-Mar-2006 |
Andreas Gohr <andi@splitbrain.org> |
simplified file permission handling
This patch simpliefies the configuration of the file and directory creation modes. There is no need to set the umask anymore. Only the wanted permissions for file
simplified file permission handling
This patch simpliefies the configuration of the file and directory creation modes. There is no need to set the umask anymore. Only the wanted permissions for files and directories are set. An init function compares the wanted modes with the ones that would be choosen by the system automatically (consulting the system's umask) and sets the modes for chmod when needed.
darcs-hash:20060304154038-7ad00-5ef1db3a87e42563a602f9d050c681d2ea74682f.gz
show more ...
|
| #
56146e0d
|
| 04-Mar-2006 |
Andreas Gohr <andi@splitbrain.org> |
make umask an empty string for system default
darcs-hash:20060304001433-7ad00-51931e5a0eccec14b63ef215b0fa535bb2484a29.gz
|
| #
e55eb89c
|
| 03-Mar-2006 |
Andreas Gohr <andi@splitbrain.org> |
punbb backend dies when magic quotes enabled
darcs-hash:20060303214459-7ad00-17f399257acafed5914eeb727b45b2fa984f00e8.gz
|
| #
3816dcbc
|
| 03-Mar-2006 |
Andreas Gohr <andi@splitbrain.org> |
nicer error messages for fatal errors
darcs-hash:20060303180548-7ad00-db294c2c5c10c8df69ebae7596e64e1af4d9bc35.gz
|
| #
0d8850c4
|
| 03-Mar-2006 |
Andreas Gohr <andi@splitbrain.org> |
better permission checking
init.php now checks for the accessability of the data directories (executebit on UNIX systems)
darcs-hash:20060303173252-7ad00-7ce3281926ac93f282d9865e9617ec4d179c2c23.gz
|
| #
fdd20f15
|
| 25-Feb-2006 |
Andreas Gohr <andi@splitbrain.org> |
removed obsolete toc unit test
darcs-hash:20060225162230-7ad00-3694f6e8d8ae36a3814d2ce09bc400a33a0d89c5.gz
|
| #
44881d27
|
| 24-Feb-2006 |
Troels Liebe Bentsen <tlb@rapanden.dk> |
Fix umask bug and do a code cleanup of chmod/mkdir usage so set the correct permissions, this should also fix problems with dokuwiki making setuid files on some umasks.
* Don't set the umask() any
Fix umask bug and do a code cleanup of chmod/mkdir usage so set the correct permissions, this should also fix problems with dokuwiki making setuid files on some umasks.
* Don't set the umask() anymore, this is not good form and we don't really know what is it in the old code anyway as it was not done properly. * Retire the dmask config option introduce 2 new ones called fmode and dmode, this is more in line with posix and should make more sense. * Use chmod for setting the correct permissions but only if it's needed. * Set changing of permissions off by default as i should work properly in most Apache setups without and it does not make sense on windows anyway.
darcs-hash:20060224211655-ee6b9-68f7bb59417d6f0033cfd3764146923daa4dcf1b.gz
show more ...
|
| #
ac9115b0
|
| 18-Feb-2006 |
Troels Liebe Bentsen <tlb@rapanden.dk> |
Fix wrong umask usage and so we set the correct file premissions.
darcs-hash:20060218183251-ee6b9-798ab2994526311b1e58f04e7684b39b51426887.gz
|
| #
98c86858
|
| 17-Feb-2006 |
Andreas Gohr <andi@splitbrain.org> |
file cleanups
This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style)
It converts files to UNIX lineendings and removes
file cleanups
This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style)
It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet.
darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
show more ...
|
| #
0a6ead41
|
| 07-Dec-2005 |
Andreas Gohr <andi@splitbrain.org> |
remove error supression for local.php (related to #659)
darcs-hash:20051207194400-7ad00-2b0cb5baec92b9cdf40ad7e3e429de0b34aa9f2a.gz
|
| #
f949a01c
|
| 08-Nov-2005 |
Andreas Gohr <andi@splitbrain.org> |
fixed two bugs reported by Timo Falk
darcs-hash:20051108195013-7ad00-f2b2b6d955e64fe2d2abfc1d9421ed619f70abd3.gz
|
| #
fc1c55b1
|
| 06-Nov-2005 |
hfuecks <hfuecks@gmail.com> |
get_tests_running_1
darcs-hash:20051106233800-e96b6-90328f1b6cc5c8b25c6e02f113cf80475789d297.gz
|