<commit_before>- content_for :page_menu do
  - cache("page-#{@page.id}-#{@revision.id}-toc") do
    = render partial: 'menu_items', object: @revision.to_toc(@options)

.markdown-page
  - if DocumentationEditor::Config.is_admin && send(DocumentationEditor::Config.is_admin)
    .text-right
      = link_to edit_page_path(@page), class: 'btn btn-warning' do
        %i.fa.fa-edit
        Edit
  - cache("page-#{@page.id}-#{@revision.id}-content") do
    = find_and_preserve do
      = @revision.to_html(@options).html_safe<commit_msg>Those cache fragment should also take the parameters into accounts.<commit_after>- id = "#{@page.id}-#{@revision.id}-#{@options.reject { |k, v| %w{action controller id}.include?(k.to_s)  }.to_param}"
- content_for :page_menu do
  - cache("page-#{id}-toc") do
    = render partial: 'menu_items', object: @revision.to_toc(@options)

.markdown-page
  - if DocumentationEditor::Config.is_admin && send(DocumentationEditor::Config.is_admin)
    .text-right
      = link_to edit_page_path(@page), class: 'btn btn-warning' do
        %i.fa.fa-edit
        Edit
  - cache("page-#{id}-content") do
    = find_and_preserve do
      = @revision.to_html(@options).html_safe
{'fraction_non_alphanumeric': 0.16429170159262363, 'fraction_numerical': 0.0, 'mean_word_length': 3.8536585365853657, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2270961', 'n_tokens_mistral': 420, 'n_tokens_neox': 416, 'n_words': 74}