Commit Graph

17941 Commits (51bc4e7eb2a80a6625b7e97284e33061945bfc0a)

Author SHA1 Message Date
Joey Hess 5e5f602782 update with new features to deal with large sites 2013-11-17 15:25:38 -04:00
Joey Hess e918b6e01a note cgid 2013-11-17 15:18:36 -04:00
Joey Hess 81aa58e7ca comments: Write pending moderation comments to the transient underlay to avoid conflict with only_committed_changes. 2013-11-17 13:07:00 -04:00
Joey Hess e11a87acfa autoindex and tag use transient underlay when not committing, so do not need to disable only_committed_changes 2013-11-17 12:51:20 -04:00
Joey Hess 7dd110ba51 disable only_committed_changes when uncommitted files are created by plugins 2013-11-17 00:04:05 -04:00
Joey Hess 3cc260c775 minor opt 2013-11-16 20:51:09 -04:00
Joey Hess 49e0841ad5 guard against lastrev being "" just in case 2013-11-16 20:49:57 -04:00
Joey Hess 441002e3e6 deal with the case where oldrev is the same as newrev 2013-11-16 20:48:23 -04:00
Joey Hess 727d39b92a fix eq 2013-11-16 18:56:39 -04:00
Joey Hess 654530fa8b Added only_committed_changes config setting, which speeds up wiki refresh by querying git to find the files that were changed, rather than looking at the work tree. Not enabled by default as it can break some setups where not all files get committed to git. 2013-11-16 17:26:20 -04:00
Joey Hess 3aaa33064c Optmised loadindex by caching the page name in the index.
I have benchmarked the pagename() call this avoids taking up to 2 seconds
for a loadindex in a large wiki. The total loadindex for that wiki was
6.46s, so this is a significant improvment.
Even on a smaller site, this reduces the refresh time from 1.69 to 1.52
seconds.

The only breakage risk here is that pagename() can change the page name
it calculates due to setup changes. But in the case of a setup change, the
whole site is rebuilt. So the cached page name is not used in that
case.
2013-11-16 12:48:11 -04:00
Joey Hess fae7ed1429 remove test for page state saved for disabled plugin
My change did cause this state to be retained. I hope this is not a
problem.

Afaik, plugins test if they were disabled before by looking at the toplevel
plugin state, not the per-page plugin state. So the only remaining problem
might be

a) A plugin is disabled but its state keeps being saved. Which is not
   ideal, perhaps, but the large speedup of my optimisation seems worth it.
b) A plugin might have been enabled, be disabled, and get re-enabled, and
   see old state from before. I don't see how this would be different from
   the plugin seeing any other old state, though, so hopefully no breakage.

My optmisation looks a little more risky, but I still hope I can keep it.
2013-11-16 12:43:46 -04:00
Joey Hess 992d4f52ff Fixed unncessary tight loop hash copy in saveindex where a pointer can be used instead. Can speed up refreshes by nearly 50% in some circumstances.
I *think* this is ok, at least it results in close to the same index being
saved as before. The difference is that plugins that have a pagestate of {}
have that recorded this way, while with the tight loop, the key for the
plugin in not copied in that case. I cannot see how this could matter.
2013-11-16 12:28:01 -04:00
Joey Hess 38aebbdc06 major optimisation idea 2013-11-16 12:05:43 -04:00
Joey Hess 2f8bafb709 poll: Fix behavior of poll buttons when inlined. 2013-11-13 22:06:02 -04:00
Joey Hess 5ec2d2d40d Merge branch 'master' of ssh://git.ikiwiki.info 2013-11-13 20:55:42 -04:00
Joey Hess 1a8b4211c2 bug 2013-11-13 20:55:01 -04:00
https://id.koumbit.net/anarcat 62483fe5ca related ideas 2013-11-13 19:51:03 -04:00
Joey Hess 355569327b Merge branch 'master' of ssh://git.ikiwiki.info 2013-11-11 11:51:25 -04:00
ehj 141f5f5e91 mailto test 2013-11-11 04:39:22 -04:00
Joey Hess 85c1479a29 Merge branch 'master' of ssh://git.ikiwiki.info 2013-11-08 14:33:05 -04:00
http://smcv.pseudorandom.co.uk/ 3500632a49 revert spam
This reverts commit 5cf53ae0a9
2013-11-08 05:33:04 -04:00
http://smcv.pseudorandom.co.uk/ 1710dce06a escape markup 2013-11-08 05:30:48 -04:00
jimmy 5cf53ae0a9 2013-11-07 06:23:30 -04:00
hugo faa2d689e6 2013-11-06 12:57:14 -04:00
hugo 6914b975b8 proposal about class parameters for toggle 2013-11-06 12:56:20 -04:00
Joey Hess 53bf8ec710 Merge branch 'master' of ssh://git.ikiwiki.info 2013-11-06 10:51:45 -04:00
spalax 520faae54f How can one highlight recent changes diff? 2013-11-06 10:06:44 -04:00
http://jmtd.livejournal.com/ d8dd6e5692 thanks 2013-11-06 09:56:48 -04:00
waf 6af39252ce 2013-11-06 06:05:43 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlUQVv1tLm_aWTKoX36OqxUUkyowomdt4E 7414926a02 Added a comment: recipe 2013-11-06 03:50:27 -04:00
https://tincho.startssl.com/ f54b33b895 Added a comment 2013-11-05 15:36:05 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlcaGfdn9Kye1Gc8aGb67PDVQW4mKbQD7E b9f3e48d91 Added a comment 2013-11-05 15:18:30 -04:00
Joey Hess 63cc1f5aab Merge branch 'master' of ssh://git.ikiwiki.info 2013-11-04 13:01:22 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlobQ5j7hQVIGkwMWW3yKB_DWqthJcpnsQ 0cc3a15d6f 2013-11-01 20:31:32 -04:00
Joey Hess 0b733575a4 Merge branch 'master' of ssh://git.ikiwiki.info 2013-10-28 15:49:15 -04:00
spalax a23d309c47 Added plugin infobox 2013-10-28 07:01:18 -04:00
Test 568942391a 2013-10-27 02:13:17 -04:00
spalax 220b07e288 Added plugin infobox 2013-10-22 08:59:47 -04:00
spalax 132c8e9457 Added plugin infobox 2013-10-22 08:58:44 -04:00
Joey Hess 970547f7bc Merge branch 'master' of ssh://git.ikiwiki.info 2013-10-19 11:26:18 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmfcr1X7TXwuCju7vCBG6vii455SX1Qxro 211ee24f14 2013-10-19 08:19:31 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnSY7iTjlvDWPRSPuhOy4h8YLi8_u2qomQ 80ec92dec4 2013-10-19 00:09:13 -04:00
http://smcv.pseudorandom.co.uk/ 3ccdc9d447 Added a comment 2013-10-18 12:56:15 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnWrt_1YwzE4yP3dF061Wy7uNjPDefJm_I d704313569 Added a comment: that works sort of, depending on the extention 2013-10-18 08:03:31 -04:00
http://smcv.pseudorandom.co.uk/ c9bb348d39 Added a comment 2013-10-15 15:48:16 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlsNmR53i7XzaEwtTVLCAgDPXZ7JvPHQr0 3d2fc66090 Added a comment: Tutorial + options 2013-10-15 15:47:31 -04:00
Mesar Hameed bd7d39ec96 Added wishlist+possible patch, expose template variables for html language and direction. 2013-10-14 15:33:24 +02:00
https://www.google.com/accounts/o8/id?id=AItOawnWrt_1YwzE4yP3dF061Wy7uNjPDefJm_I 66f0c1dda3 Added a comment: Did anybody see this? 2013-10-14 06:59:48 -04:00
Mesar Hameed 6c9945b1c3 Add user page for mhameed 2013-10-13 10:56:39 +02:00