gitlab-org--gitlab-foss/lib/banzai
Patrick Bajao 2eecfd8f9d Use Redis for CacheMarkDownField on non AR models
This allows using `CacheMarkdownField` for models that are not backed
by ActiveRecord.

When the including class inherits `ActiveRecord::Base` we include
`Gitlab::MarkdownCache::ActiveRecord::Extension`. This will cause the
markdown fields to be rendered and the generated HTML stored in a
`<field>_html` attribute on the record. We also store the version
used for generating the markdown.

All other classes that include this model will include the
`Gitlab::MarkdownCache::Redis::Extension`. This add the `<field>_html`
attributes to that model and will generate the html in them. The
generated HTML will be cached in redis under the key
`markdown_cache:<class>:<id>`. The class this included in must
therefore respond to `id`.
2019-06-05 13:19:59 +08:00
..
filter Reject slug+uri concat if slug is deemed unsafe 2019-05-24 12:33:24 -07:00
pipeline Add SyntaxHighlightFilter to markup pipeline 2019-03-05 14:14:11 +00:00
reference_parser [CE] Support multiple assignees for merge requests 2019-04-08 18:40:00 -03:00
renderer/common_mark Remove Redcarpet markdown engine 2019-02-04 12:48:35 +01:00
color_parser.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
commit_renderer.rb Use Redis for CacheMarkDownField on non AR models 2019-06-05 13:19:59 +08:00
cross_project_reference.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
filter.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
filter_array.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
issuable_extractor.rb Prepare Banzai to work with group issuables 2018-10-31 16:04:48 +01:00
object_renderer.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
pipeline.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
querying.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
redactor.rb Fix url redaction for issue links 2019-05-03 15:09:20 +02:00
reference_extractor.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
reference_parser.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
render_context.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
renderer.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
request_store_reference_cache.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00