Skip to content
Snippets Groups Projects
  1. 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
  2. Sep 29, 2007
  3. Sep 30, 2007
    • Andreas Gohr's avatar
      don't use realpath() anymore (FS#1261 and others) · 00976812
      Andreas Gohr authored
      The use of realpath() to clean up relative file names caused some
      trouble in certain setups relying on symlinks or having restricitve
      file structure setups.
      
      This patch replaces all realpath() calls with a PHP only replacement
      which should solve those problems.
      
      darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
      00976812
  4. Sep 25, 2006
    • chris's avatar
      amendments to previous patch updating rss & cache · 0a69dff7
      chris authored
      rss syntax extended to include a refresh parameter
       <digits><period>  period can be d,h,m for days, hours, minutes respectively
                         if not specified will default to 4 hours
                         dokuwiki imposes a minimum of 10 minutes
      
      metadata now used "date valid age" (seconds) rather than "date valid end"
      
      darcs-hash:20060925201222-9b6ab-c8e6d8e40bb178295bab874fce5147ccff35fbbb.gz
      0a69dff7
  5. Sep 24, 2006
    • chris's avatar
      cache, metadata & purgefile updates · ce6b63d9
      chris authored
      Cache
      - add dependency for metadata renderer file
      - check metadata for end of page life, "date valid end".
      
      Metadata Renderer
      - RSS syntax mode now sets rendered page expiry, "date valid end"
        and includes the feed URL in "relation haspart".
      
      Purgefile
      For all wiki installations the purgefile records the earliest
      time before which no cache purge (based on data consistency)
      is required. Cache files older than this time MAY need to be
      purged.
      - remove purgeonadd configuration setting
      
      darcs-hash:20060924202157-9b6ab-4531e91411c41914eeab2b6a8160c3d46b001cee.gz
      ce6b63d9
  6. Sep 23, 2006
  7. Sep 17, 2006
    • Ben Coburn's avatar
      Store cache hits only while debugging · 33c1bd61
      Ben Coburn authored
      Reduce overhead by only storing cache hit stats while
      the allowdebug option is enabled.
      
      darcs-hash:20060917230403-05dcb-92afea926b5a3fc302327f964e482787aec2d982.gz
      33c1bd61
    • chris's avatar
      cache.php fixes · b9991f57
      chris authored
      - add code to ensure page metadata is refreshed along with cache
      - bug fix for missing global $conf
      
      darcs-hash:20060917193934-9b6ab-c53c8b6e4764d4c63014ecbaadf0797eb959224f.gz
      b9991f57
  8. Sep 15, 2006
    • chris's avatar
      minor update to cache.php · 0abe1d3e
      chris authored
      this update changes the processing sequence slightly
      to make the cache item's dependencies ($this->depends)
      available before _useCache is called.
      
      ie. the dependencies will be available to and modifiable
          by handlers of the PARSER_USE_CACHE event.
      
      darcs-hash:20060915144735-9b6ab-b0db479f9ef305aed21ca291ea909002baae4e21.gz
      0abe1d3e
  9. Sep 10, 2006
    • chris's avatar
      parser caching update · 4b5f4f4e
      chris authored
      This patch primarily updates p_cached_xhtml() and p_cached_instructions() to
      allow their caching logic to be surrounded by an event trigger.
      
      p_cached_xhtml() has been rewritten as the more general p_cached_output() to
      support other render output formats besides 'xhtml'. All calls to
      p_cached_xhtml() have been changed to refer to the new function.
      
      New event:
      
      name:        PARSER_CACHE_USE
      data:        cache object (see below)
      action:      determine if cache file can be used
      preventable: yes
      result:      bool, true to use cache file, false otherwise
      
      Cache operations have been generalised in a new class, cache, extended to
      cache_parser, cache_renderer & cache_instructions. Details can be found in
      inc/cache.php
      
      For handling of above event, key properties are:
      - page, if present the wiki page id,
              may not always be present, e.g. when called for locale xhtml files
      - file, source file
      - mode, renderer mode (e.g. 'xhtml') or 'i' for instructions
      
      Other changes:
      - cache class counts cache hits against attempts, results are stored in
        {cache_dir}/cache_stats.txt
      - adds metadata dependency to renderer page cache
      - replaces purgefile dependency for renderer cache with metadata
        'relation references' (internal link) dependency for wiki pages only
      
      darcs-hash:20060911021418-9b6ab-19601ed194b8c8e45236ab72c3e23d78bf777e6c.gz
      4b5f4f4e
Loading