Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-16Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2022-11-09Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2022-08-19Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-08-04Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-08-03Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-08-02Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-07-29Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-07-27Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-06-07Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-12-04Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-07-01Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-07-11Banzai - avoid redis if attr is in DB cacheMario de la Ossa
When cache_collection_render runs we end up reading and writing things to redis even if we already have the rendered field cached in the DB. This commit avoids using redis at all whenever we have the field already rendered in the DB cache.
2019-06-05Cleanup #attributes methodPatrick Bajao
Since we're prepending the ActiveRecord::Extension module, we can take advantage of it and avoid using an alias to extend the original #attributes method.
2019-06-05Remove requirement for id for #markdown_cache_keyPatrick Bajao
It's not needed anymore as we require `#cache_key` instead.
2019-06-05Use #cache_key of subject for generated redis keyPatrick Bajao
This commit also includes some changes in specs to use `Class.new` approach.
2019-06-05Use Redis for CacheMarkDownField on non AR modelsPatrick Bajao
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`.