• Patrick Bajao's avatar
    Cache markdown when viewing a blob · 8ec29b41
    Patrick Bajao authored
    In order to improve performance of
    `Projects::BlobController#show.json` when viewing a markdown blob,
    we need to utilize the cache so succeeding requests to the same
    blob won't have to re-parse markdown.
    
    Based on tests done locally, this improves the response time of
    the endpoint when viewing a large markdown file from ~11s to ~4s.
    8ec29b41
markup_spec.rb 1 KB