Skip to content
Snippets Groups Projects
  1. May 18, 2017
    • Toon Claes's avatar
      Fix ProjectCacheWorker for plain READMEs · abc82a25
      Toon Claes authored
      The ProjectCacheWorker refreshes cache periodically, but it runs outside Rails
      context. So include the ActionView helpers so the `content_tag` method is
      available.
      abc82a25
  2. May 10, 2017
  3. Apr 28, 2017
  4. Apr 27, 2017
  5. Apr 26, 2017
  6. Mar 14, 2017
  7. Jan 03, 2017
  8. Dec 02, 2016
  9. Oct 07, 2016
    • Nick Thomas's avatar
      Enable CacheMarkdownField for the remaining models · 99205515
      Nick Thomas authored
      This commit alters views for the following models to use the markdown cache if
      present:
      
      * AbuseReport
      * Appearance
      * ApplicationSetting
      * BroadcastMessage
      * Group
      * Issue
      * Label
      * MergeRequest
      * Milestone
      * Project
      
      At the same time, calls to `escape_once` have been moved into the `single_line`
      Banzai pipeline, so they can't be missed out by accident and the work is done
      at save, rather than render, time.
      99205515
    • Nick Thomas's avatar
      Add markdown cache columns to the database, but don't use them yet · e94cd6fd
      Nick Thomas authored
      This commit adds a number of _html columns and, with the exception of Note,
      starts updating them whenever the content of their partner fields changes.
      
      Note has a collision with the note_html attr_accessor; that will be fixed later
      
      A background worker for clearing these cache columns is also introduced - use
      `rake cache:clear` to set it off. You can clear the database or Redis caches
      separately by running `rake cache:clear:db` or `rake cache:clear:redis`,
      respectively.
      e94cd6fd
  10. Jun 21, 2016
    • Yorick Peterse's avatar
      Move pre_process into render_result · d9a4ca59
      Yorick Peterse authored
      The method Banzai::Renderer.pre_process would always be called,
      regardless of whether the Markdown to render was already cached or not.
      In cache the document _was_ cached the output of the pre-processing
      pipeline was ignored resulting in it doing nothing but wasting CPU
      cycles.
      
      This commit moves Banzai::Renderer.pre_process into
      Banzai::Renderer.render_result so that it's _only_ used when needed.
      Verified
      d9a4ca59
  11. Jun 17, 2016
  12. Jun 09, 2016
    • Timothy Andrew's avatar
      Hook up the updated `WikiLinkFilter` to the wiki controllers. · e6b1d166
      Timothy Andrew authored
      - Need to pass in a `page_slug` to the filter, so it can rewrite based
        on the current page (all links are rewritten to the level of the app root).
      - The earlier `markdown_preview` endpoint was at the level of the wiki.
        We need to know the current page (for rewriting, as above), so this
        commit moves the endpoint to the level of a wiki page.
      - Fix all tests
      e6b1d166
  13. Jun 03, 2016
  14. May 23, 2016
  15. Apr 10, 2016
  16. Mar 03, 2016
  17. Feb 12, 2016
  18. Jan 14, 2016
  19. Dec 15, 2015
  20. Nov 17, 2015
  21. Oct 14, 2015
  22. Oct 13, 2015
  23. Oct 07, 2015
  24. Oct 01, 2015
Loading