Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
skip some heavy cachebuilding for doc update api calls
  • Loading branch information
drusepth committed Sep 30, 2021
commit c0c559f1c4fb230b18308e6c872c57fb84ce2f44
4 changes: 4 additions & 0 deletions app/controllers/documents_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ class DocumentsController < ApplicationController
before_action :set_navbar_actions, except: [:edit, :plaintext]
before_action :set_footer_visibility, only: [:edit]

# Skip UI-heavy calls for API endpoints
skip_before_action :cache_most_used_page_information, only: [:update]
skip_before_action :cache_forums_unread_counts, only: [:update]

# TODO: verify_user_can_read, verify_user_can_edit, etc before_actions instead of inlining them

before_action :cache_linkable_content_for_each_content_type, only: [:edit]
Expand Down