Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-13) was last changed on 26-Sep-2007 23:36 by JanneJalkanen  

This page was created on 01-Sep-2003 16:51 by

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 61 added 2 lines
There might be more things that need to be stored (user settings, wiki settings, plugin settings). It would make sense to accommodate these somehow also.
At line 64 added 40 lines
After looking at the times the PageProvider is accessed, and is actualy doing disk IO, I have implemented the following optimalizations on my system:
* a negative page cache (caching pagenames/attachments that do not exist)
** source of [CachedAttachmentProvider|].
** source of [CachingProvider|].
* a prevayler provider, which keeps all WikiPages (including txt) in memory.
** source of [PrevaylerProvider|] package.
Effectivly my system currently has 2 levels of caching.
# the CachingProvider (caching processed pages) and the CachedAttachmentProvider (caching nonexisting pages)
# the PrevaylerProvider (keeping all current unprocessed versions of all pages)
Attachments are not cached.
At the moment I have a very few pages, so all this caching is realy just overkill :)
''Side note: I've trailed from the JSPWiki tree pretty much now, so I decided to setup my own environment for my further developments. It is my intention to keepi a close eye on the JSPWiki cvs tree and merge those developments into my tree when applicable. If you like to see how it is working out... please visit []''
2003-09-01 [AikoMastboom]
Caching non-existant pages is a good source for memory leaks... 2.1.63 handles non-existant pages much more efficiently now, by simply assuming that if it's not on the list of all pages, it must not exist :-).
2.1.63 also fixes a serious bug (corrected with a single, forgotten line) which caused the CachingProvider to sometimes forget it had ever seen a page.
I also put these fixes on 2.0.51.
I will also add a ~CachingAttachmentProvider, since Niilo convinced me that it is a problem.
-- JanneJalkanen
Well, I did not yet look deeper into the code, but to avoid memory leaks I work with {{SoftReference}}. This allows me to cache everything without caring about {{OutOfMemory}}.
-- [Bebbo]
Version Date Modified Size Author Changes ... Change note
13 26-Sep-2007 23:36 6.447 kB JanneJalkanen to previous
12 26-Sep-2007 02:38 6.466 kB to previous | to last
11 26-Sep-2007 02:37 6.458 kB to previous | to last
10 28-Jan-2004 12:24 6.447 kB Bebbo to previous | to last
9 02-Sep-2003 10:56 6.245 kB JanneJalkanen to previous | to last
8 02-Sep-2003 10:54 6.149 kB JanneJalkanen to previous | to last
7 01-Sep-2003 18:53 5.717 kB AikoMastboom to previous | to last
6 01-Sep-2003 18:08 4.273 kB to previous | to last
5 01-Sep-2003 18:04 4.115 kB to previous | to last
4 01-Sep-2003 17:53 3.417 kB to previous | to last
3 01-Sep-2003 17:13 0.996 kB to previous | to last
2 01-Sep-2003 17:02 0.755 kB to previous | to last
1 01-Sep-2003 16:51 0.634 kB to last
« This page (revision-13) was last changed on 26-Sep-2007 23:36 by JanneJalkanen