gitlab-org--gitlab-foss/lib
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
..
api Merge branch 'bvl-design-diff-notes-ce' into 'master' 2019-06-04 14:06:21 +00:00
assets
backup
banzai Use Redis for CacheMarkDownField on non AR models 2019-06-05 13:19:59 +08:00
bitbucket
bitbucket_server
constraints
container_registry
declarative_policy
flowdock
generators/rails/post_deployment_migration
gitaly
gitlab Use Redis for CacheMarkDownField on non AR models 2019-06-05 13:19:59 +08:00
google_api
json_web_token
mattermost
microsoft_teams
object_storage
omni_auth/strategies
peek
quality
rouge
rspec_flaky
safe_zip
sentry
serializers
support
system_check
tasks Merge branch 'gitaly-version-v1.43.0' into 'master' 2019-05-31 14:16:54 +00:00
after_commit_queue.rb
backup.rb
banzai.rb
carrier_wave_string_file.rb
declarative_policy.rb
event_filter.rb
expand_variables.rb
extracts_path.rb
feature.rb
file_size_validator.rb
forever.rb
gitlab.rb Add DNS rebinding protection settings 2019-05-30 10:47:57 -03:00
gt_one_coercion.rb
milestone_array.rb
mysql_zero_date.rb
static_model.rb
system_check.rb
uploaded_file.rb
version_check.rb