Skip to content
Snippets Groups Projects
  1. Jul 30, 2011
  2. Jul 25, 2011
  3. Jul 11, 2011
  4. Jul 10, 2011
  5. Jul 02, 2011
  6. Jun 26, 2011
  7. Jun 21, 2011
  8. Jun 16, 2011
  9. Jun 14, 2011
  10. Jun 13, 2011
  11. Jun 09, 2011
  12. Jun 07, 2011
  13. Jun 06, 2011
  14. Jun 05, 2011
  15. Jun 03, 2011
  16. May 30, 2011
  17. May 25, 2011
  18. May 24, 2011
  19. May 23, 2011
  20. May 22, 2011
  21. May 08, 2011
    • Anika Henke's avatar
      1f13e33d
    • lupo49's avatar
      Cosmetic changes in tpl_getFavicon() · 0f747863
      lupo49 authored
      0f747863
    • Michael Hamann's avatar
      Add more render/cache logic to the metadata code · 65aa8490
      Michael Hamann authored
      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.
      65aa8490
  22. May 07, 2011
    • Michael Hamann's avatar
      Change when metadata is rendered - only when really needed · 67c15ece
      Michael Hamann authored
      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.
      67c15ece
    • Anika Henke's avatar
      defb7d57
  23. May 03, 2011
  24. May 02, 2011
Loading