Skip to content

Commit 394e9ea

Browse files
committed
Removed cache_stats from the Admin
1 parent 6238cf9 commit 394e9ea

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

app/controllers/admin_controller.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ class AdminController < BaseAdminController
33
def index
44
end
55

6-
def cache_stats
7-
@cache_stats = Rails.cache.stats
8-
end
9-
106
def failed_jobs
117
@page = params[:page].try(:to_i) || 1
128
@per_page = params[:per_page].try(:to_i) || 10

app/views/admin/cache_stats.html.haml

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/views/admin/index.html.haml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@
7777
%tr
7878
%td Sidekiq Dashboard
7979
%td{:colspan => 2}= link_to "Sidekiq dashboard", "/admin/sidekiq"
80-
%tr
81-
%td Cache Stats
82-
%td{:colspan => 2}= link_to "Cache stats", admin_cache_stats_path
8380
%tr
8481
%td{:colspan => 2} Pro tips created in networks in past week
8582
-Network.all.each do |network|

config/routes.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@
258258
# add_skill GET /add-skill(.:format) skills#create
259259
# admin_root GET /admin(.:format) admin#index
260260
# admin_failed_jobs GET /admin/failed_jobs(.:format) admin#failed_jobs
261-
# admin_cache_stats GET /admin/cache_stats(.:format) admin#cache_stats
262261
# admin_teams GET /admin/teams(.:format) admin#teams
263262
# admin_sections_teams GET /admin/teams/sections/:num_sections(.:format) admin#sections_teams
264263
# admin_section_teams GET /admin/teams/section/:section(.:format) admin#section_teams
@@ -483,7 +482,6 @@
483482
scope :admin, as: :admin, :path => '/admin', :constraints => require_admin do
484483
get '/' => 'admin#index', as: :root
485484
get '/failed_jobs' => 'admin#failed_jobs'
486-
get '/cache_stats' => 'admin#cache_stats'
487485
get '/teams' => 'admin#teams', as: :teams
488486
get '/teams/sections/:num_sections' => 'admin#sections_teams', as: :sections_teams
489487
get '/teams/section/:section' => 'admin#section_teams', as: :section_teams

0 commit comments

Comments
 (0)