Skip to content
Snippets Groups Projects
  1. Apr 26, 2011
  2. Feb 06, 2011
  3. Jan 10, 2011
    • Michael Hamann's avatar
      Add define for metadata usage limit in p_get_first_heading · ff725173
      Michael Hamann authored
      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.
      ff725173
    • Michael Hamann's avatar
      Use title index for more than 11 p_first_heading calls · bf0c93c2
      Michael Hamann authored
      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.
      bf0c93c2
    • Michael Hamann's avatar
      Activate the render parameter of p_get_metadata · 4a819402
      Michael Hamann authored
      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.
      4a819402
  4. Dec 27, 2010
    • Michael Hamann's avatar
      Save metadata only when really changed · 69ba640b
      Michael Hamann authored
      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).
      69ba640b
  5. Nov 22, 2010
    • Michael Hamann's avatar
      Render metadata when needed · 98214867
      Michael Hamann authored
      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.
      98214867
  6. Nov 13, 2010
  7. Oct 07, 2010
  8. Mar 29, 2010
    • Adrian Lang's avatar
      Allow plugins to specify that they have to be instantiated · f6ec8df8
      Adrian Lang authored
      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).
      f6ec8df8
  9. Mar 26, 2010
  10. Mar 23, 2010
  11. Feb 03, 2010
  12. Feb 01, 2010
  13. Jan 31, 2010
    • Andreas Gohr's avatar
      first attempt to centralize all include loading · 16905344
      Andreas Gohr authored
      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.
      16905344
  14. Jan 15, 2010
  15. Nov 06, 2009
  16. Oct 20, 2009
    • Andreas Gohr's avatar
      Coding Standard Cleanup · db959ae3
      Andreas Gohr authored
      Ignore-this: 259cb5773c3144c6c706d87298dcf674
      
      darcs-hash:20091020212338-7ad00-6bf1c5c403491f136a1c02af5ecd9f84d7227107.gz
      db959ae3
  17. Oct 16, 2009
    • furun's avatar
      Whitespace cleanup FS#1709 · 47583ff0
      furun authored
      Ignore-this: 27ea52110bce929b2c61ed8faba67cfc
      
      darcs-hash:20091016205526-c0bf4-35eba4e65d37980a667ba982f7f1ea5b7b07f01c.gz
      47583ff0
  18. Oct 04, 2009
  19. Aug 02, 2009
  20. Jul 15, 2009
  21. Jan 22, 2009
    • Chris Smith's avatar
      further updates to config_cascade patch · f8121585
      Chris Smith authored
      - add mediameta and license config files into the cascade
      - update the cache validity code in cache.php, css.php & js.php to use config_cascade
      - redo inclusion of main config files to avoid suppression of errors in config files
      - add getConfigFiles($type) function
      - minor updates elsewhere to use config_cascade rather than hardcoded config file names
      
      darcs-hash:20090122114457-f07c6-98ad5627fd5df93edf8dd03289b9cf6d81962afe.gz
      f8121585
  22. Dec 13, 2008
  23. Nov 19, 2008
    • Chris Smith's avatar
      FS#630: allow $conf['useheading'] to individually apply to content links and/or navigation links · fe9ec250
      Chris Smith authored
      $conf['useheading'] values are now:
      - 0            : off, use page name in link text
      - 'content'    : use first heading text for links in wiki page content
      - 'navigation' : use first heading text for links in non-page content, e.g. breadcrumps, backlinks, search results, etc.
      - 1            : use first heading text in all links
      (for backwards compatibility, any other values are mapped to 0 or 1 by empty() function.)
      
      $conf['useheading'] value should now be checked using the useHeading($linktype) function,
      where linktype can be "content" or "navigation"
      
      darcs-hash:20081119140758-f07c6-6e26456d50dcecc949fada31b0d4e72877fde1cc.gz
      fe9ec250
  24. Aug 04, 2008
    • gweissbach's avatar
      Explicite TypeCast for searchIndex · 3a50618c
      gweissbach authored
      Running the /bin/indexer.php or the searchindex plugin fails in php5
      with several type cast errors. This can be fixed using explicite type casts.
      
      Secondly the include plugin requires the auth.php to be present. As some other
      plugins might use quick-acl or the $auth too, indexer.php should require the auth.php
      just as the lib/exe/indexer.php does.
      
      darcs-hash:20080804112444-f4337-e12f25329236689b05e31f0db2119e47660a9404.gz
      3a50618c
  25. Aug 13, 2008
  26. May 02, 2008
  27. Apr 17, 2008
  28. Mar 29, 2008
    • Chris Smith's avatar
      Fix for FS#1350 · 5d568b99
      Chris Smith authored
      Inline modes, <php> and <html>, when their associated config setting is off, will
      generate highlighted text wrapped in a <code> element.
      
      There is a slight change in behaviour for p_xhtml_cached_geshi(), it will now strip
      leading and trailing blank lines from the input code string.
      
      Also fixes an issue where global $conf wasn't declared, preventing the
      ['target']['extern'] setting being passed to GeSHi
      
      darcs-hash:20080329194443-f07c6-00db3d502b07a6ff0c7f6e5c74a3691438504bcb.gz
      5d568b99
  29. Mar 26, 2008
    • Michael Klier's avatar
      purge non-persistent meta data on page deletion · 3d1f9ec3
      Michael Klier authored
          With this patch applied the persistent meta data of pages is kept when a
          page is deleted. This way the original page creator as well as the creation
          time of the page is preserved.
      
      darcs-hash:20080326200231-23886-ddb70151fadf25d0254d56408b71484047198096.gz
      3d1f9ec3
  30. Mar 11, 2008
    • Chris Smith's avatar
      Add support for plugin renderers to replace standard renderers · d968d3e5
      Chris Smith authored
      This patch is the fourth in a series aimed at making it easier for DW to allow
      plugins to modify the standard handling of line-breaks.
      
      It adds:
      - new config setting 'renderer_xhtml', default value 'xhtml'
      - new renderer method 'reset()' which is used by reusable renderers when used
        to render second and subsequent data. (*)
      
      An extra step has been added to the renderer selection process.
      - check $conf["renderer_$mode] for renderer name.  If it doesn't exist use $mode as
        the renderer name.
      
      (*) It maybe that the 'document_start()' method can be used for this.  However the
      current xhtml does not correctly reset itself for reuse.
      
      darcs-hash:20080312005647-f07c6-ff2cb960c05927f5c6f3e916a364fcad470c2ce3.gz
      d968d3e5
  31. Feb 22, 2008
    • Chris Smith's avatar
      Fix for FS#1334, see also FS#1090 · cbaf4259
      Chris Smith authored
      FS#1090 ensured DW would never rebuild instructions in the same run by forcing subsequent
      instruction requests to use the version cached on the first request.  That introduced problems
      when the caching of the instructions failed (FS#1334).  This patch allows subsequent rebuilds
      when cache storage failed.
      
      darcs-hash:20080223025539-d26fc-26202a049a6969816553d950a2bb8f71a02ae76e.gz
      cbaf4259
  32. Feb 08, 2008
  33. Oct 16, 2007
    • Andreas Gohr's avatar
      header support for renderer plugins · 85767031
      Andreas Gohr authored
      Renderer plugins now can store HTTP header information in 'format <mode>' which
      will be used to send their output. Also fixes a problem with loading cache files.
      
      darcs-hash:20071016185626-7ad00-c0e18a90b310daf0d3a3c01d7a73f3524ced803d.gz
      85767031
  34. Sep 29, 2007
Loading