summaryrefslogtreecommitdiff
path: root/lib/banzai/renderer.rb
Commit message (Collapse)AuthorAgeFilesLines
* make mentions working when project not specifiedJarka Kadlecova2017-01-181-2/+2
|
* Split out markdown cache storage into a separate methodNick Thomas2016-11-041-1/+5
|
* Use module_function in Banzai::Rendererfix-banzai-renderer-instrumentationYorick Peterse2016-10-141-3/+1
| | | | | | | Using `extend self` prevents GitLab Performance Monitoring from being able to track class methods. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23347
* Add markdown cache columns to the database, but don't use them yetNick Thomas2016-10-071-0/+28
| | | | | | | | | | | | 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.
* Make banzai module that handles markdown singletonGrzegorz Bizon2016-07-191-7/+9
|
* ObjectRenderer doesn't crash when no objects to cache with ↵Paco Guzman2016-07-131-4/+10
| | | | Rails.cache.read_multi
* Object renderer read_multi rendered entries from Cacheread-multi-rendered-objectsPaco Guzman2016-07-121-1/+55
|
* Move pre_process into render_resultremove-banzai-pre-processYorick Peterse2016-06-211-6/+2
| | | | | | | | | | | 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.
* Instrument Banzai codeYorick Peterse2016-04-111-8/+12
|
* Add a PreProcessPipelineRobert Speicher2016-03-021-0/+6
|
* Revert "Temporarily disable Markdown caching"Douwe Maan2016-01-061-3/+1
| | | | This reverts commit d337d5e7137d9b3fd0f9b8890a3ba9296323acc7.
* Revert "Add DEBUG_BANZAI_CACHE env var to debug Banzai cache issue."Douwe Maan2016-01-061-14/+7
| | | | This reverts commit 4b027bc93a7875c3937f6b90ac1049b4a4d72da5.
* Add DEBUG_BANZAI_CACHE env var to debug Banzai cache issue.debug-banzai-cacheDouwe Maan2016-01-041-7/+14
|
* Temporarily disable Markdown cachingDouwe Maan2015-12-161-1/+3
|
* Move Markdown/reference logic from Gitlab::Markdown to BanzaiDouwe Maan2015-12-151-0/+76