| #
                3d6feb16 |  | 07-Jul-2012 | Michael Hamann <michael@content-space.de> | Remove useless condition in p_get_metadata and add explanation 
 | 
| #
                ff1769de |  | 24-Jun-2012 | Andreas Gohr <andi@splitbrain.org> | another input wrapper fix 
 | 
| #
                0cacf91f |  | 10-Jul-2011 | Lucas <lists@x3ro.de> | Add check for existing renderer class 
 | 
| #
                1c56be7b |  | 07-Jun-2011 | Michael Hamann <michael@content-space.de> | Add missing return value to p_set_metadata 
 | 
| #
                65aa8490 |  | 08-May-2011 | Michael Hamann <michael@content-space.de> | Add more render/cache logic to the metadata code
 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 par
 Add more render/cache logic to the metadata code
 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.
 show more ...  
 | 
| #
                67c15ece |  | 07-May-2011 | Michael Hamann <michael@content-space.de> | Change when metadata is rendered - only when really needed
 This changes the cache logic for metadata. It introduces a new mode that
 tries to avoid rendering the page again for simple requests but st
 Change when metadata is rendered - only when really needed
 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.
 show more ...  
 | 
| #
                65f40513 |  | 26-Apr-2011 | Michael Hamann <michael@content-space.de> | Fix p_get_first_heading for when the search index is empty
 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
 
 Fix p_get_first_heading for when the search index is empty
 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.
 show more ...  
 | 
| #
                79c1bbfe |  | 06-Feb-2011 | Michael Hamann <michael@content-space.de> | p_get_metadata: show the save error message only when metadata has been changed 
 | 
| #
                0e5fde48 |  | 06-Feb-2011 | Michael Hamann <michael@content-space.de> | Allow p_set_metadata during rendering, test cases included. FS#1827 
 | 
| #
                ff725173 |  | 10-Jan-2011 | Michael Hamann <michael@content-space.de> | Add define for metadata usage limit in p_get_first_heading
 This commit introduces a new define P_GET_FIRST_HEADING_METADATA_LIMIT
 that can be set in preload.php in order to change the limit for how
 Add define for metadata usage limit in p_get_first_heading
 This commit introduces a new define P_GET_FIRST_HEADING_METADATA_LIMIT
 that can be set in preload.php in order to change the limit for how many
 pages the first heading shall be loaded from metadata in
 p_get_first_heading. Changing this is probably most interesting for
 Wikis with a lot of pages where loading the title index costs a
 significant amount of time and memory.
 show more ...  
 | 
| #
                bf0c93c2 |  | 10-Jan-2011 | Michael Hamann <michael@content-space.de> | Use title index for more than 11 p_first_heading calls
 This change makes p_get_first_heading load the title index when more
 than 11 requests that caused a call to p_get_metadata have already been
 do
 Use title index for more than 11 p_first_heading calls
 This change makes p_get_first_heading load the title index when more
 than 11 requests that caused a call to p_get_metadata have already been
 done. This means that small pages and the breadcrums won't trigger the
 loading of the title index but for larger pages or the sitemap the title
 index will be used. This is necessary because every call to
 p_get_metadata can trigger the parsing and rendering of a whole page and
 there can be many calls when useheading is activated and e.g. the
 index/sitemap page is displayed.
 
 Additionally this adds a small title cache that caches titles requested
 from p_get_metadata.
 
 Further tests should be done how this affects memory usage and how often
 the index loading is triggered in order to see if that parameter should
 be adjusted.
 show more ...  
 | 
| #
                4a819402 |  | 10-Jan-2011 | Michael Hamann <michael@content-space.de> | Activate the render parameter of p_get_metadata
 p_get_metadata has a $render parameter that has been disabled by the
 restructuring of metadata rendering. This change reactivates it so
 rendering meta
 Activate the render parameter of p_get_metadata
 p_get_metadata has a $render parameter that has been disabled by the
 restructuring of metadata rendering. This change reactivates it so
 rendering metadata can be prevented. This is e.g. used in the search and
 in some plugins like indexmenu that use p_get_first_heading. The default
 of the parameter has been changed to true as otherwise the new caching
 structure won't work as almost all calls to p_get_metadata don't set the
 $render parameter.
 The indexer call to p_get_first_heading has been changed to set $render
 to true as in the indexer only one page will be rendered and the title
 in the index should really be the current one.
 This does not fix the problem that rendering pages with lots of links or
 displaying the index can cause the parsing/rendering of a lot of pages.
 show more ...  
 | 
| #
                69ba640b |  | 27-Dec-2010 | Michael Hamann <michael@content-space.de> | Save metadata only when really changed
 This avoids disk writes when not needed and possibly also xhtml
 rendering when the metadata needs to be rendered but xhtml doesn't
 (unless the metadata file is
 Save metadata only when really changed
 This avoids disk writes when not needed and possibly also xhtml
 rendering when the metadata needs to be rendered but xhtml doesn't
 (unless the metadata file is changed).
 show more ...  
 | 
| #
                98214867 |  | 22-Nov-2010 | Michael Hamann <michael@content-space.de> | Render metadata when needed
 This changes fundamentally when metadata is rendered. This commit
 introduces a new cache file for every page that just contains a
 timestamp and is updated whenever the me
 Render metadata when needed
 This changes fundamentally when metadata is rendered. This commit
 introduces a new cache file for every page that just contains a
 timestamp and is updated whenever the metadata of that page is rendered.
 
 Metadata is rendered when p_get_metadata is called and the last
 rendering has been before a page, metadata, configuration or renderer
 update or purge is set like in the xhtml renderer cache.
 
 Metadata is no longer automatically rendered when the xhtml renderer
 cache isn't used but will still be rendered when needed as
 p_get_metadata is called in the cache.
 
 Metadata is also no longer rendered in the indexer script when missing
 as that is already done by pageinfo() before anything else is done so
 the indexer script won't be called when there is no metadata file.
 show more ...  
 | 
| #
                a365baee |  | 13-Nov-2010 | Dominik Eckelmann <deckelmann@gmail.com> | improved some metadata comments 
 | 
| #
                1172f8dc |  | 13-Nov-2010 | Adrian Lang <dokuwiki@adrianlang.de> | Introduce metadata write wrapper p_save_metadata
 p_purge_metadata now updates the metadata cache and the INFO array like the other metadata writing functions
 
 | 
| #
                3903be5d |  | 13-Nov-2010 | Adrian Lang <dokuwiki@adrianlang.de> | Remove metadata conversion from 0a7e3bce (2006-11-26) 
 | 
| #
                7a8cc57e |  | 03-Oct-2010 | Elan Ruusamäe <glen@delfi.ee> | - spelling fixes 
 | 
| #
                f6ec8df8 |  | 29-Mar-2010 | Adrian Lang <lang@cosmocode.de> | Allow plugins to specify that they have to be instantiated
 Plugins may return false in isSingleton to let plugin_load return a new
 instance every time it is called.
 Renderer plugins are not loaded w
 Allow plugins to specify that they have to be instantiated
 Plugins may return false in isSingleton to let plugin_load return a new
 instance every time it is called.
 Renderer plugins are not loaded with $new set to true, but instead specify
 themself that they are not singletons. This behaviour allows the odt renderer
 to keep working (see #1598).
 show more ...  
 | 
| #
                569a0019 |  | 26-Mar-2010 | Adrian Lang <lang@cosmocode.de> | Fix and simplify p_get_metadata key looping
 explode converts $string (false) to string ("") and returns it if $delimiter is
 not found, therefor looking for the key "" in metadata array.
 
 | 
| #
                ebf65d37 |  | 17-Mar-2010 | Adrian Lang <lang@cosmocode.de> | Rewrite p_get_metadata to not issue a E_Notice 
 | 
| #
                d7879495 |  | 12-Mar-2010 | Andreas Gohr <andi@splitbrain.org> | Merge branch 'requireall'
 Conflicts:
 inc/fulltext.php
 
 | 
| #
                3b748871 |  | 03-Feb-2010 | Andreas Gohr <andi@splitbrain.org> | cast 2nd param to array when executing render instructions FS#1880 
 | 
| #
                0af14a6e |  | 01-Feb-2010 | Andreas Gohr <andi@splitbrain.org> | removed more unneeded require_once() calls 
 | 
| #
                16905344 |  | 31-Jan-2010 | Andreas Gohr <andi@splitbrain.org> | first attempt to centralize all include loading
 Classes are loaded throug PHP5's class autoloader, all other
 includes are just loaded by default. This skips a lot of
 require_once calls.
 
 Parser and
 first attempt to centralize all include loading
 Classes are loaded throug PHP5's class autoloader, all other
 includes are just loaded by default. This skips a lot of
 require_once calls.
 
 Parser and Plugin stuff isn't handled by the class loader yet.
 show more ...  
 |