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:
parent
1f53615654
commit
73e0b3bb3c
4 changed files with 125 additions and 132 deletions
|
@ -9,7 +9,6 @@
|
||||||
= will_paginate @items
|
= will_paginate @items
|
||||||
- else
|
- else
|
||||||
#search-info
|
#search-info
|
||||||
- localized_cache :action_suffix => 'search_help' do
|
|
||||||
#search-help
|
#search-help
|
||||||
%h2= t '.search_help_header'
|
%h2= t '.search_help_header'
|
||||||
%dl
|
%dl
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
= f.select :list_id, neopets_page_list_options(current_user)
|
= f.select :list_id, neopets_page_list_options(current_user)
|
||||||
= f.submit t('.submit')
|
= f.submit t('.submit')
|
||||||
|
|
||||||
- localized_cache :action_suffix => 'explanation' do
|
|
||||||
%p
|
%p
|
||||||
= t '.help.welcome', :name => @import_task.page.name
|
= t '.help.welcome', :name => @import_task.page.name
|
||||||
= t '.help.intro', :name => @import_task.page.name
|
= t '.help.intro', :name => @import_task.page.name
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
DTI here for a long time to come!
|
DTI here for a long time to come!
|
||||||
|
|
||||||
#outfit-forms
|
#outfit-forms
|
||||||
- localized_cache :action_suffix => 'outfit_forms_intro' do
|
|
||||||
#pet-preview
|
#pet-preview
|
||||||
= image_tag 'default_preview.png', :alt => ''
|
= image_tag 'default_preview.png', :alt => ''
|
||||||
%span
|
%span
|
||||||
|
@ -109,8 +108,6 @@
|
||||||
= image_tag item.thumbnail_url
|
= image_tag item.thumbnail_url
|
||||||
= nc_icon_for(item)
|
= nc_icon_for(item)
|
||||||
|
|
||||||
|
|
||||||
- localized_cache :action_suffix => 'templates' do
|
|
||||||
%script#pet-query-notice-template{:type => 'text/x-jquery-tmpl'}
|
%script#pet-query-notice-template{:type => 'text/x-jquery-tmpl'}
|
||||||
.notice
|
.notice
|
||||||
%img.inline-image{:src => '${pet_image_url}'}
|
%img.inline-image{:src => '${pet_image_url}'}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
- title t('modeling_hub')
|
- title t('modeling_hub')
|
||||||
|
|
||||||
= form_tag load_pet_path, :id => 'bulk-pets-form' do
|
= form_tag load_pet_path, :id => 'bulk-pets-form' do
|
||||||
- localized_cache :action_suffix => 'bulk_pets_content' do
|
|
||||||
%p= t '.explanation'
|
%p= t '.explanation'
|
||||||
|
|
||||||
= origin_tag bulk_pets_path
|
= origin_tag bulk_pets_path
|
||||||
|
@ -15,7 +14,6 @@
|
||||||
%button#bulk-pets-form-clear{:type => "button"}= t '.clear'
|
%button#bulk-pets-form-clear{:type => "button"}= t '.clear'
|
||||||
%ul
|
%ul
|
||||||
|
|
||||||
- localized_cache :action_suffix => 'templates' do
|
|
||||||
%script#item-template{:type => 'text/x-jquery-tmpl'}
|
%script#item-template{:type => 'text/x-jquery-tmpl'}
|
||||||
%li{:class => 'object{{if owned}} owned{{/if}}'}
|
%li{:class => 'object{{if owned}} owned{{/if}}'}
|
||||||
= link_to item_path(':id').sub(':id', '${id}') do
|
= link_to item_path(':id').sub(':id', '${id}') do
|
||||||
|
|
Loading…
Reference in a new issue