Remove some silly view template caching calls

When I was trying to debug slow view code one time long long ago, I was
like "let's cache any part of the template that's static!"

And like. no that's silly, I don't trust that this speeds anything up,
but it _definitely_ adds complexity. Let's just not.
This commit is contained in:
Emi Matchu 2024-09-20 18:08:11 -07:00
parent 1f53615654
commit 73e0b3bb3c
4 changed files with 125 additions and 132 deletions

View file

@ -9,7 +9,6 @@
= will_paginate @items
- else
#search-info
- localized_cache :action_suffix => 'search_help' do
#search-help
%h2= t '.search_help_header'
%dl

View file

@ -16,7 +16,6 @@
= f.select :list_id, neopets_page_list_options(current_user)
= f.submit t('.submit')
- localized_cache :action_suffix => 'explanation' do
%p
= t '.help.welcome', :name => @import_task.page.name
= t '.help.intro', :name => @import_task.page.name

View file

@ -22,7 +22,6 @@
DTI here for a long time to come!
#outfit-forms
- localized_cache :action_suffix => 'outfit_forms_intro' do
#pet-preview
= image_tag 'default_preview.png', :alt => ''
%span
@ -109,8 +108,6 @@
= image_tag item.thumbnail_url
= nc_icon_for(item)
- localized_cache :action_suffix => 'templates' do
%script#pet-query-notice-template{:type => 'text/x-jquery-tmpl'}
.notice
%img.inline-image{:src => '${pet_image_url}'}

View file

@ -1,7 +1,6 @@
- title t('modeling_hub')
= form_tag load_pet_path, :id => 'bulk-pets-form' do
- localized_cache :action_suffix => 'bulk_pets_content' do
%p= t '.explanation'
= origin_tag bulk_pets_path
@ -15,7 +14,6 @@
%button#bulk-pets-form-clear{:type => "button"}= t '.clear'
%ul
- localized_cache :action_suffix => 'templates' do
%script#item-template{:type => 'text/x-jquery-tmpl'}
%li{:class => 'object{{if owned}} owned{{/if}}'}
= link_to item_path(':id').sub(':id', '${id}') do