manage_cache 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d086284c04b727bf43511670bb8e88bc4848e8c1
4
- data.tar.gz: fefd47861d23256b765a6d4ff9fa07034ea1e833
3
+ metadata.gz: ce56f23bde708a289ccc0b630646820b1af6d98c
4
+ data.tar.gz: ca78e1547f251c8e5edde100dbf0ae783b6d675d
5
5
  SHA512:
6
- metadata.gz: 4831115ab6e9f5a6331c17a55f656afe9fb08f3b67e310c32698884ac7dfc42adc16c93cb52a05d2f979c97ecb16d310c14b7ec0a54f5cb4f8bdbac50639249e
7
- data.tar.gz: f377bae3bc05679acd25c5ac3a9d368150a6481a7af0116ff9ab01a183d2296045ba6fc13ca77b6ab23e80ef289a522d930af5fe591c795b92aabc638e5e54a5
6
+ metadata.gz: 77bfa743d8f1a83980a8f9c0d4f32e8f8fdbfbc8f7b0cf98e2c2d4959cbe1d811e640cb4edc9b53eb174c57a64ffc96b814cd50068aacb02518b9259be048188
7
+ data.tar.gz: 152643ac4bb14ca47a1fca88a4ccff6fd1081c4b3fbfd9ad2716864f786a9717bcb8709dd1cce6ef1b4ccdb145b5dac2b6c45945e1eeddeba2693ee1b932bd6c
@@ -1,3 +1,3 @@
1
1
  module ManageCache
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/manage_cache.rb CHANGED
@@ -26,8 +26,8 @@ module ManageCache
26
26
  if delete_cache?(key_specs)
27
27
  if !key_specs[:regexp].blank?
28
28
  delete_cache_w_regexp(key_name)
29
- #delete_cache_w_regexp(key, key_specs)
30
29
  else
30
+ delete_cache(key_name)
31
31
  end
32
32
  instance_variable_set("@cache_key_for_#{key_name}", nil)
33
33
  end
@@ -128,7 +128,7 @@ module ManageCache
128
128
  specs = self.class.cache_keys_specs[key_name]
129
129
 
130
130
  regexp = specs[:regexp].inject([]) do |m, (k,v)|
131
- redis_store = Rails.cache.class == ActiveSupport::Cache::RedisStore
131
+ redis_store = Rails.cache.class.name == "ActiveSupport::Cache::RedisStore"
132
132
  m << "#{k}=#{redis_store ? '*' : v}"
133
133
  end.join('-')
134
134
 
@@ -155,7 +155,7 @@ module ManageCache
155
155
  #
156
156
  def delete_cache?(key_specs)
157
157
  !key_specs[:if_changed] or
158
- self.changed.length > (self.changed - key_specs[:if_changed].map(&:to_s)).length
158
+ self.changed != (self.changed - key_specs[:if_changed].map(&:to_s))
159
159
  end
160
160
  end
161
161
  end
@@ -32683,3 +32683,784 @@ UserTest: test_cache_key_for_should_return_the_right_key
32683
32683
  ManageCacheTest: test_truth
32684
32684
  ---------------------------
32685
32685
   (0.0ms) rollback transaction
32686
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32687
+  (0.1ms) begin transaction
32688
+ --------------------------------------------------------------------------------
32689
+ ShoesControllerTest: test_shoes#index_-cache_should_be_updated_after_shoe_update
32690
+ --------------------------------------------------------------------------------
32691
+  (0.0ms) SAVEPOINT active_record_1
32692
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32693
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 14:59:54.316079"], ["updated_at", "2016-01-19 14:59:54.316079"]]
32694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32695
+  (0.0ms) SAVEPOINT active_record_1
32696
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32697
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 14:59:54.402953"], ["updated_at", "2016-01-19 14:59:54.402953"]]
32698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32699
+  (0.0ms) SAVEPOINT active_record_1
32700
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32701
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32702
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32703
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32704
+  (0.1ms) rollback transaction
32705
+  (0.0ms) begin transaction
32706
+ ----------------------------------------------------------------------------------------
32707
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
32708
+ ----------------------------------------------------------------------------------------
32709
+  (0.0ms) SAVEPOINT active_record_1
32710
+  (0.2ms) SELECT MAX("users"."updated_at") FROM "users"
32711
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 14:59:54.568599"], ["updated_at", "2016-01-19 14:59:54.568599"]]
32712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32713
+  (0.0ms) SAVEPOINT active_record_1
32714
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32715
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 14:59:54.640239"], ["updated_at", "2016-01-19 14:59:54.640239"]]
32716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32717
+  (0.0ms) SAVEPOINT active_record_1
32718
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32719
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32720
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32721
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32722
+  (0.2ms) rollback transaction
32723
+  (0.1ms) begin transaction
32724
+ -------------------------------------------------------------------------------------------
32725
+ UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_shoe_update
32726
+ -------------------------------------------------------------------------------------------
32727
+  (0.0ms) SAVEPOINT active_record_1
32728
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32729
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 14:59:54.790743"], ["updated_at", "2016-01-19 14:59:54.790743"]]
32730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32731
+  (0.0ms) SAVEPOINT active_record_1
32732
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32733
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 14:59:54.869194"], ["updated_at", "2016-01-19 14:59:54.869194"]]
32734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32735
+  (0.1ms) SAVEPOINT active_record_1
32736
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32737
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32738
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32739
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32740
+  (0.1ms) rollback transaction
32741
+  (0.0ms) begin transaction
32742
+ -------------------------------------------------------------------------------------------
32743
+ UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_user_update
32744
+ -------------------------------------------------------------------------------------------
32745
+  (0.0ms) SAVEPOINT active_record_1
32746
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32747
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 14:59:55.006708"], ["updated_at", "2016-01-19 14:59:55.006708"]]
32748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32749
+  (0.0ms) SAVEPOINT active_record_1
32750
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32751
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 14:59:55.080431"], ["updated_at", "2016-01-19 14:59:55.080431"]]
32752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32753
+  (0.0ms) SAVEPOINT active_record_1
32754
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32755
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32756
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32757
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32758
+  (0.1ms) rollback transaction
32759
+  (0.0ms) begin transaction
32760
+ -------------------------------------------------------------------------------------------
32761
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
32762
+ -------------------------------------------------------------------------------------------
32763
+  (0.0ms) SAVEPOINT active_record_1
32764
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32765
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 14:59:55.216453"], ["updated_at", "2016-01-19 14:59:55.216453"]]
32766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32767
+  (0.0ms) SAVEPOINT active_record_1
32768
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32769
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 14:59:55.290634"], ["updated_at", "2016-01-19 14:59:55.290634"]]
32770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32771
+  (0.0ms) SAVEPOINT active_record_1
32772
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32773
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32774
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32775
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32776
+  (0.1ms) rollback transaction
32777
+  (0.0ms) begin transaction
32778
+ ------------------------------------------------------------------------------
32779
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
32780
+ ------------------------------------------------------------------------------
32781
+  (0.0ms) SAVEPOINT active_record_1
32782
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32783
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 14:59:55.437131"], ["updated_at", "2016-01-19 14:59:55.437131"]]
32784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32785
+  (0.0ms) SAVEPOINT active_record_1
32786
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32787
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 14:59:55.508819"], ["updated_at", "2016-01-19 14:59:55.508819"]]
32788
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32789
+  (0.0ms) SAVEPOINT active_record_1
32790
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32791
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32792
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32793
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32794
+  (0.1ms) rollback transaction
32795
+  (0.1ms) begin transaction
32796
+ ---------------------------
32797
+ ManageCacheTest: test_truth
32798
+ ---------------------------
32799
+  (0.0ms) rollback transaction
32800
+  (0.0ms) begin transaction
32801
+ --------------------------------------------------------
32802
+ UserTest: test_cache_key_for_should_return_the_right_key
32803
+ --------------------------------------------------------
32804
+  (0.0ms) SAVEPOINT active_record_1
32805
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32806
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 14:59:55.648051"], ["updated_at", "2016-01-19 14:59:55.648051"]]
32807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32808
+  (0.1ms) rollback transaction
32809
+  (0.0ms) begin transaction
32810
+ -------------------------------------------------------------------
32811
+ ShoeTest: test_cache_will_be_deleted_if_specified_attribute_changed
32812
+ -------------------------------------------------------------------
32813
+  (0.0ms) SAVEPOINT active_record_1
32814
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32815
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "hans"], ["created_at", "2016-01-19 14:59:55.726074"], ["updated_at", "2016-01-19 14:59:55.726074"]]
32816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32817
+  (0.0ms) SAVEPOINT active_record_1
32818
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32819
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32820
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32821
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32822
+  (0.1ms) rollback transaction
32823
+  (0.0ms) begin transaction
32824
+ ------------------------------------------------------------------------------
32825
+ ShoeTest: test_cache_will_not_be_deleted_if_specified_attribute_did_not_change
32826
+ ------------------------------------------------------------------------------
32827
+  (0.0ms) SAVEPOINT active_record_1
32828
+  (0.2ms) SELECT MAX("users"."updated_at") FROM "users"
32829
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "hans"], ["created_at", "2016-01-19 14:59:55.869723"], ["updated_at", "2016-01-19 14:59:55.869723"]]
32830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32831
+  (0.0ms) SAVEPOINT active_record_1
32832
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32833
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32834
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32835
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32836
+  (0.1ms) rollback transaction
32837
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32838
+  (0.1ms) begin transaction
32839
+ ----------------------------------------------------------------------------------------
32840
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
32841
+ ----------------------------------------------------------------------------------------
32842
+  (0.0ms) SAVEPOINT active_record_1
32843
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32844
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.649715"], ["updated_at", "2016-01-19 15:00:29.649715"]]
32845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32846
+  (0.0ms) SAVEPOINT active_record_1
32847
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32848
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:00:29.658101"], ["updated_at", "2016-01-19 15:00:29.658101"]]
32849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32850
+  (0.1ms) SAVEPOINT active_record_1
32851
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32852
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32853
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32854
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32855
+  (0.1ms) rollback transaction
32856
+  (0.0ms) begin transaction
32857
+ -------------------------------------------------------------------------------------------
32858
+ UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_shoe_update
32859
+ -------------------------------------------------------------------------------------------
32860
+  (0.0ms) SAVEPOINT active_record_1
32861
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32862
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.675200"], ["updated_at", "2016-01-19 15:00:29.675200"]]
32863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32864
+  (0.0ms) SAVEPOINT active_record_1
32865
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32866
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:00:29.677057"], ["updated_at", "2016-01-19 15:00:29.677057"]]
32867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32868
+  (0.0ms) SAVEPOINT active_record_1
32869
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32870
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32871
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32872
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32873
+  (0.1ms) rollback transaction
32874
+  (0.0ms) begin transaction
32875
+ -------------------------------------------------------------------------------------------
32876
+ UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_user_update
32877
+ -------------------------------------------------------------------------------------------
32878
+  (0.0ms) SAVEPOINT active_record_1
32879
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32880
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.681952"], ["updated_at", "2016-01-19 15:00:29.681952"]]
32881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32882
+  (0.0ms) SAVEPOINT active_record_1
32883
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32884
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:00:29.683327"], ["updated_at", "2016-01-19 15:00:29.683327"]]
32885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32886
+  (0.0ms) SAVEPOINT active_record_1
32887
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32888
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32889
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32890
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32891
+  (0.1ms) rollback transaction
32892
+  (0.0ms) begin transaction
32893
+ -------------------------------------------------------------------------------------------
32894
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
32895
+ -------------------------------------------------------------------------------------------
32896
+  (0.0ms) SAVEPOINT active_record_1
32897
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32898
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.687410"], ["updated_at", "2016-01-19 15:00:29.687410"]]
32899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32900
+  (0.0ms) SAVEPOINT active_record_1
32901
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32902
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:00:29.688827"], ["updated_at", "2016-01-19 15:00:29.688827"]]
32903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32904
+  (0.0ms) SAVEPOINT active_record_1
32905
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32906
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32907
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32908
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32909
+  (0.1ms) rollback transaction
32910
+  (0.0ms) begin transaction
32911
+ ------------------------------------------------------------------------------
32912
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
32913
+ ------------------------------------------------------------------------------
32914
+  (0.1ms) SAVEPOINT active_record_1
32915
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32916
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.692912"], ["updated_at", "2016-01-19 15:00:29.692912"]]
32917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32918
+  (0.0ms) SAVEPOINT active_record_1
32919
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32920
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:00:29.694255"], ["updated_at", "2016-01-19 15:00:29.694255"]]
32921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32922
+  (0.0ms) SAVEPOINT active_record_1
32923
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32924
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32925
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32926
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32927
+  (0.1ms) rollback transaction
32928
+  (0.1ms) begin transaction
32929
+ ---------------------------
32930
+ ManageCacheTest: test_truth
32931
+ ---------------------------
32932
+  (0.0ms) rollback transaction
32933
+  (0.1ms) begin transaction
32934
+ ------------------------------------------------------------------------------
32935
+ ShoeTest: test_cache_will_not_be_deleted_if_specified_attribute_did_not_change
32936
+ ------------------------------------------------------------------------------
32937
+  (0.0ms) SAVEPOINT active_record_1
32938
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32939
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "hans"], ["created_at", "2016-01-19 15:00:29.699042"], ["updated_at", "2016-01-19 15:00:29.699042"]]
32940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32941
+  (0.0ms) SAVEPOINT active_record_1
32942
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32943
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32944
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32945
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32946
+  (0.1ms) rollback transaction
32947
+  (0.0ms) begin transaction
32948
+ -------------------------------------------------------------------
32949
+ ShoeTest: test_cache_will_be_deleted_if_specified_attribute_changed
32950
+ -------------------------------------------------------------------
32951
+  (0.0ms) SAVEPOINT active_record_1
32952
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32953
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "hans"], ["created_at", "2016-01-19 15:00:29.702858"], ["updated_at", "2016-01-19 15:00:29.702858"]]
32954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32955
+  (0.0ms) SAVEPOINT active_record_1
32956
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32957
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32958
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32959
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32960
+  (0.1ms) rollback transaction
32961
+  (0.0ms) begin transaction
32962
+ --------------------------------------------------------------------------------
32963
+ ShoesControllerTest: test_shoes#index_-cache_should_be_updated_after_shoe_update
32964
+ --------------------------------------------------------------------------------
32965
+  (0.1ms) SAVEPOINT active_record_1
32966
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32967
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.711449"], ["updated_at", "2016-01-19 15:00:29.711449"]]
32968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32969
+  (0.0ms) SAVEPOINT active_record_1
32970
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32971
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:00:29.713137"], ["updated_at", "2016-01-19 15:00:29.713137"]]
32972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32973
+  (0.0ms) SAVEPOINT active_record_1
32974
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32975
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
32976
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32977
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32978
+  (0.1ms) rollback transaction
32979
+  (0.0ms) begin transaction
32980
+ --------------------------------------------------------
32981
+ UserTest: test_cache_key_for_should_return_the_right_key
32982
+ --------------------------------------------------------
32983
+  (0.0ms) SAVEPOINT active_record_1
32984
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32985
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.718464"], ["updated_at", "2016-01-19 15:00:29.718464"]]
32986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32987
+  (0.1ms) rollback transaction
32988
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32989
+  (0.1ms) begin transaction
32990
+ -------------------------------------------------------------------
32991
+ ShoeTest: test_cache_will_be_deleted_if_specified_attribute_changed
32992
+ -------------------------------------------------------------------
32993
+  (0.0ms) SAVEPOINT active_record_1
32994
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
32995
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "hans"], ["created_at", "2016-01-19 15:02:09.986322"], ["updated_at", "2016-01-19 15:02:09.986322"]]
32996
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32997
+  (0.1ms) SAVEPOINT active_record_1
32998
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
32999
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33000
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33001
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33002
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.005770"], ["updated_at", "2016-01-19 15:02:10.005770"]]
33003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33004
+  (0.0ms) SAVEPOINT active_record_1
33005
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33006
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33007
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33008
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "blue"], ["updated_at", "2016-01-19 15:02:10.009954"], ["id", 1]]
33009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33010
+  (0.1ms) rollback transaction
33011
+  (0.0ms) begin transaction
33012
+ ------------------------------------------------------------------------------
33013
+ ShoeTest: test_cache_will_not_be_deleted_if_specified_attribute_did_not_change
33014
+ ------------------------------------------------------------------------------
33015
+  (0.0ms) SAVEPOINT active_record_1
33016
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33017
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "hans"], ["created_at", "2016-01-19 15:02:10.015288"], ["updated_at", "2016-01-19 15:02:10.015288"]]
33018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33019
+  (0.0ms) SAVEPOINT active_record_1
33020
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33021
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33022
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33023
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33024
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.023569"], ["updated_at", "2016-01-19 15:02:10.023569"]]
33025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33026
+  (0.0ms) SAVEPOINT active_record_1
33027
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33028
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33029
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33030
+ SQL (0.1ms) UPDATE "shoes" SET "name" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["name", "Nike"], ["updated_at", "2016-01-19 15:02:10.026383"], ["id", 1]]
33031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33032
+  (0.1ms) rollback transaction
33033
+  (0.0ms) begin transaction
33034
+ -------------------------------------------------------------------------------------------
33035
+ UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_user_update
33036
+ -------------------------------------------------------------------------------------------
33037
+  (0.1ms) SAVEPOINT active_record_1
33038
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33039
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:02:10.049493"], ["updated_at", "2016-01-19 15:02:10.049493"]]
33040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33041
+  (0.0ms) SAVEPOINT active_record_1
33042
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33043
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:02:10.050942"], ["updated_at", "2016-01-19 15:02:10.050942"]]
33044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33045
+  (0.0ms) SAVEPOINT active_record_1
33046
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33047
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33048
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33049
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33050
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.053808"], ["updated_at", "2016-01-19 15:02:10.053808"]]
33051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33052
+  (0.0ms) SAVEPOINT active_record_1
33053
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33054
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33055
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33056
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33057
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.056373"], ["updated_at", "2016-01-19 15:02:10.056373"]]
33058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33059
+  (0.0ms) SAVEPOINT active_record_1
33060
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33061
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33062
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33063
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33064
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.059005"], ["updated_at", "2016-01-19 15:02:10.059005"]]
33065
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33066
+ Processing by UsersController#index as HTML
33067
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
33068
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33069
+ Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.1ms)
33070
+ User Load (0.1ms) SELECT "users".* FROM "users"
33071
+ Read fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.0ms)
33072
+ Write fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.5ms)
33073
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33074
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33075
+ Read fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.0ms)
33076
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33077
+ Write fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.4ms)
33078
+ Read fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.0ms)
33079
+ Write fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.4ms)
33080
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
33081
+ Read fragment views/ (0.0ms)
33082
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
33083
+ Write fragment views/ (0.4ms)
33084
+ Write fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.4ms)
33085
+ Rendered users/index.html.erb within layouts/application (8.6ms)
33086
+ Completed 200 OK in 160ms (Views: 159.1ms | ActiveRecord: 0.5ms)
33087
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33088
+  (0.0ms) SAVEPOINT active_record_1
33089
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-19 15:02:10.225128"], ["id", 1]]
33090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33091
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33092
+ Processing by UsersController#index as HTML
33093
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
33094
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33095
+ Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.0ms)
33096
+ User Load (0.1ms) SELECT "users".* FROM "users"
33097
+ Read fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.1ms)
33098
+ Write fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.4ms)
33099
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33100
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33101
+ Read fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.1ms)
33102
+ Read fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.1ms)
33103
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
33104
+ Read fragment views/ (0.1ms)
33105
+ Write fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.3ms)
33106
+ Rendered users/index.html.erb within layouts/application (4.1ms)
33107
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.8ms)
33108
+  (0.1ms) rollback transaction
33109
+  (0.0ms) begin transaction
33110
+ ------------------------------------------------------------------------------
33111
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
33112
+ ------------------------------------------------------------------------------
33113
+  (0.0ms) SAVEPOINT active_record_1
33114
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33115
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:02:10.234068"], ["updated_at", "2016-01-19 15:02:10.234068"]]
33116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33117
+  (0.0ms) SAVEPOINT active_record_1
33118
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33119
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:02:10.235388"], ["updated_at", "2016-01-19 15:02:10.235388"]]
33120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33121
+  (0.0ms) SAVEPOINT active_record_1
33122
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33123
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33124
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33125
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33126
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.237830"], ["updated_at", "2016-01-19 15:02:10.237830"]]
33127
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33128
+  (0.0ms) SAVEPOINT active_record_1
33129
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33130
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33131
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33132
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33133
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.240290"], ["updated_at", "2016-01-19 15:02:10.240290"]]
33134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33135
+  (0.0ms) SAVEPOINT active_record_1
33136
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33137
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33138
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33139
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33140
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.242644"], ["updated_at", "2016-01-19 15:02:10.242644"]]
33141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33142
+ Processing by UsersController#show as HTML
33143
+ Parameters: {"id"=>"1"}
33144
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33145
+ Read fragment views/spec=show-user=1-updated_at=2016-01-19 15:02:10 UTC (0.1ms)
33146
+ Write fragment views/spec=show-user=1-updated_at=2016-01-19 15:02:10 UTC (0.4ms)
33147
+ Rendered users/show.html.erb within layouts/application (1.0ms)
33148
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
33149
+  (0.0ms) SAVEPOINT active_record_1
33150
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33151
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-19 15:02:10.248316"], ["id", 1]]
33152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33153
+ Processing by UsersController#show as HTML
33154
+ Parameters: {"id"=>"1"}
33155
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33156
+ Read fragment views/spec=show-user=1-updated_at=2016-01-19 15:02:10 UTC (0.0ms)
33157
+ Write fragment views/spec=show-user=1-updated_at=2016-01-19 15:02:10 UTC (0.3ms)
33158
+ Rendered users/show.html.erb within layouts/application (0.6ms)
33159
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
33160
+  (0.1ms) rollback transaction
33161
+  (0.0ms) begin transaction
33162
+ -------------------------------------------------------------------------------------------
33163
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
33164
+ -------------------------------------------------------------------------------------------
33165
+  (0.0ms) SAVEPOINT active_record_1
33166
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33167
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:02:10.252372"], ["updated_at", "2016-01-19 15:02:10.252372"]]
33168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33169
+  (0.0ms) SAVEPOINT active_record_1
33170
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33171
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:02:10.253673"], ["updated_at", "2016-01-19 15:02:10.253673"]]
33172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33173
+  (0.0ms) SAVEPOINT active_record_1
33174
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33175
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33176
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33177
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33178
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.256183"], ["updated_at", "2016-01-19 15:02:10.256183"]]
33179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33180
+  (0.0ms) SAVEPOINT active_record_1
33181
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33182
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33183
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33184
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33185
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.258606"], ["updated_at", "2016-01-19 15:02:10.258606"]]
33186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33187
+  (0.0ms) SAVEPOINT active_record_1
33188
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33189
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33190
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33191
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33192
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.261809"], ["updated_at", "2016-01-19 15:02:10.261809"]]
33193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33194
+ Processing by UsersController#index as HTML
33195
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
33196
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33197
+ Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.1ms)
33198
+ User Load (0.1ms) SELECT "users".* FROM "users"
33199
+ Read fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.0ms)
33200
+ Write fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.4ms)
33201
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33202
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33203
+ Read fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.0ms)
33204
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33205
+ Write fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.3ms)
33206
+ Read fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.0ms)
33207
+ Write fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.3ms)
33208
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
33209
+ Read fragment views/ (0.0ms)
33210
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
33211
+ Write fragment views/ (0.3ms)
33212
+ Write fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.3ms)
33213
+ Rendered users/index.html.erb within layouts/application (5.6ms)
33214
+ Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.3ms)
33215
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33216
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33217
+  (0.0ms) SAVEPOINT active_record_1
33218
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33219
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33220
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33221
+ SQL (0.0ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-19 15:02:10.272622"], ["id", 1]]
33222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33223
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33224
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33225
+ Processing by UsersController#index as HTML
33226
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
33227
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33228
+ Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.0ms)
33229
+ User Load (0.1ms) SELECT "users".* FROM "users"
33230
+ Read fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.1ms)
33231
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33232
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33233
+ Read fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.0ms)
33234
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33235
+ Write fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.4ms)
33236
+ Read fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.1ms)
33237
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
33238
+ Read fragment views/ (0.1ms)
33239
+ Write fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.3ms)
33240
+ Rendered users/index.html.erb within layouts/application (4.0ms)
33241
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.6ms)
33242
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33243
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33244
+  (0.1ms) rollback transaction
33245
+  (0.0ms) begin transaction
33246
+ -------------------------------------------------------------------------------------------
33247
+ UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_shoe_update
33248
+ -------------------------------------------------------------------------------------------
33249
+  (0.0ms) SAVEPOINT active_record_1
33250
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33251
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:02:10.281563"], ["updated_at", "2016-01-19 15:02:10.281563"]]
33252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33253
+  (0.0ms) SAVEPOINT active_record_1
33254
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33255
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:02:10.282867"], ["updated_at", "2016-01-19 15:02:10.282867"]]
33256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33257
+  (0.0ms) SAVEPOINT active_record_1
33258
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33259
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33260
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33261
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33262
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.285319"], ["updated_at", "2016-01-19 15:02:10.285319"]]
33263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33264
+  (0.0ms) SAVEPOINT active_record_1
33265
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33266
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33267
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33268
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33269
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.287668"], ["updated_at", "2016-01-19 15:02:10.287668"]]
33270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33271
+  (0.0ms) SAVEPOINT active_record_1
33272
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33273
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33274
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33275
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33276
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.290010"], ["updated_at", "2016-01-19 15:02:10.290010"]]
33277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33278
+ Processing by UsersController#index as HTML
33279
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
33280
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33281
+ Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.1ms)
33282
+ User Load (0.1ms) SELECT "users".* FROM "users"
33283
+ Read fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.0ms)
33284
+ Write fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.6ms)
33285
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33286
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33287
+ Read fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.0ms)
33288
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33289
+ Write fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.3ms)
33290
+ Read fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.0ms)
33291
+ Write fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.3ms)
33292
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
33293
+ Read fragment views/ (0.0ms)
33294
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
33295
+ Write fragment views/ (0.3ms)
33296
+ Write fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.3ms)
33297
+ Rendered users/index.html.erb within layouts/application (6.3ms)
33298
+ Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.3ms)
33299
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33300
+  (0.0ms) SAVEPOINT active_record_1
33301
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33302
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33303
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33304
+ SQL (0.0ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-19 15:02:10.301196"], ["id", 1]]
33305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33306
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33307
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33308
+ Processing by UsersController#index as HTML
33309
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
33310
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33311
+ Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.0ms)
33312
+ User Load (0.0ms) SELECT "users".* FROM "users"
33313
+ Read fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.1ms)
33314
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33315
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33316
+ Read fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.0ms)
33317
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33318
+ Write fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.4ms)
33319
+ Read fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.1ms)
33320
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
33321
+ Read fragment views/ (0.1ms)
33322
+ Write fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.3ms)
33323
+ Rendered users/index.html.erb within layouts/application (4.0ms)
33324
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.6ms)
33325
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33326
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33327
+  (0.1ms) rollback transaction
33328
+  (0.0ms) begin transaction
33329
+ ----------------------------------------------------------------------------------------
33330
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
33331
+ ----------------------------------------------------------------------------------------
33332
+  (0.0ms) SAVEPOINT active_record_1
33333
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33334
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:02:10.310326"], ["updated_at", "2016-01-19 15:02:10.310326"]]
33335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33336
+  (0.0ms) SAVEPOINT active_record_1
33337
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33338
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:02:10.311662"], ["updated_at", "2016-01-19 15:02:10.311662"]]
33339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33340
+  (0.0ms) SAVEPOINT active_record_1
33341
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33342
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33343
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33344
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33345
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.314052"], ["updated_at", "2016-01-19 15:02:10.314052"]]
33346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33347
+  (0.0ms) SAVEPOINT active_record_1
33348
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33349
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33350
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33351
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33352
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.316478"], ["updated_at", "2016-01-19 15:02:10.316478"]]
33353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33354
+  (0.0ms) SAVEPOINT active_record_1
33355
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33356
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33357
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33358
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33359
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.318826"], ["updated_at", "2016-01-19 15:02:10.318826"]]
33360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33361
+ Processing by UsersController#index as HTML
33362
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
33363
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33364
+ Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.0ms)
33365
+ User Load (0.1ms) SELECT "users".* FROM "users"
33366
+ Read fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.0ms)
33367
+ Write fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.4ms)
33368
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33369
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33370
+ Read fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.0ms)
33371
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33372
+ Write fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.6ms)
33373
+ Read fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.0ms)
33374
+ Write fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.4ms)
33375
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
33376
+ Read fragment views/ (0.0ms)
33377
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
33378
+ Write fragment views/ (0.5ms)
33379
+ Write fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.3ms)
33380
+ Rendered users/index.html.erb within layouts/application (6.4ms)
33381
+ Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.3ms)
33382
+  (0.1ms) SAVEPOINT active_record_1
33383
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33384
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-19 15:02:10.328689"], ["id", 1]]
33385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33386
+ Processing by UsersController#index as HTML
33387
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
33388
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33389
+ Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.0ms)
33390
+ User Load (0.1ms) SELECT "users".* FROM "users"
33391
+ Read fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.0ms)
33392
+ Write fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.3ms)
33393
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
33394
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33395
+ Read fragment views/spec=users_shoes-user=1-last_updated_shoe=2016-01-19 15:02:10 UTC (0.1ms)
33396
+ Read fragment views/spec=row_name-user=2-updated_at=2016-01-19 15:02:10 UTC (0.1ms)
33397
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
33398
+ Read fragment views/ (0.1ms)
33399
+ Write fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.3ms)
33400
+ Rendered users/index.html.erb within layouts/application (3.9ms)
33401
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.6ms)
33402
+  (0.1ms) rollback transaction
33403
+  (0.0ms) begin transaction
33404
+ --------------------------------------------------------
33405
+ UserTest: test_cache_key_for_should_return_the_right_key
33406
+ --------------------------------------------------------
33407
+  (0.0ms) SAVEPOINT active_record_1
33408
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33409
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:02:10.336585"], ["updated_at", "2016-01-19 15:02:10.336585"]]
33410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33411
+  (0.1ms) rollback transaction
33412
+  (0.1ms) begin transaction
33413
+ --------------------------------------------------------------------------------
33414
+ ShoesControllerTest: test_shoes#index_-cache_should_be_updated_after_shoe_update
33415
+ --------------------------------------------------------------------------------
33416
+  (0.0ms) SAVEPOINT active_record_1
33417
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33418
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-19 15:02:10.341523"], ["updated_at", "2016-01-19 15:02:10.341523"]]
33419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33420
+  (0.0ms) SAVEPOINT active_record_1
33421
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33422
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-19 15:02:10.342895"], ["updated_at", "2016-01-19 15:02:10.342895"]]
33423
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33424
+  (0.0ms) SAVEPOINT active_record_1
33425
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33426
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33427
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33428
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33429
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.345495"], ["updated_at", "2016-01-19 15:02:10.345495"]]
33430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33431
+  (0.0ms) SAVEPOINT active_record_1
33432
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33433
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33434
+  (0.0ms) SELECT MAX("users"."updated_at") FROM "users"
33435
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33436
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.347897"], ["updated_at", "2016-01-19 15:02:10.347897"]]
33437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33438
+  (0.0ms) SAVEPOINT active_record_1
33439
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33440
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33441
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33442
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33443
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-19 15:02:10.350325"], ["updated_at", "2016-01-19 15:02:10.350325"]]
33444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33445
+ Processing by ShoesController#index as HTML
33446
+ Parameters: {"page"=>"1"}
33447
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" LIMIT 1 OFFSET 0
33448
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33449
+ Read fragment views/spec=shoes_index-max_up=2016-01-19 15:02:10 UTC-page=1 (0.1ms)
33450
+ Write fragment views/spec=shoes_index-max_up=2016-01-19 15:02:10 UTC-page=1 (0.5ms)
33451
+ Rendered shoes/index.html.erb within layouts/application (3.7ms)
33452
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.2ms)
33453
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33454
+  (0.1ms) SAVEPOINT active_record_1
33455
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
33456
+  (0.1ms) SELECT MAX("users"."updated_at") FROM "users"
33457
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33458
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-19 15:02:11.362953"], ["id", 1]]
33459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33460
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes"
33461
+  (0.1ms) rollback transaction
33462
+  (0.0ms) begin transaction
33463
+ ---------------------------
33464
+ ManageCacheTest: test_truth
33465
+ ---------------------------
33466
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manage_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - cgregor
@@ -111,7 +111,6 @@ files:
111
111
  - test/dummy/test/fixtures/users.yml
112
112
  - test/dummy/test/models/shoe_test.rb
113
113
  - test/dummy/test/models/user_test.rb
114
- - test/dummy/tmp/cache/A4A/A50/spec%3Dshoe_color-shoe_id%3D1
115
114
  - test/test_helper.rb
116
115
  homepage: https://github.com/grgr/manage_cache
117
116
  licenses:
@@ -198,6 +197,5 @@ test_files:
198
197
  - test/dummy/config/secrets.yml
199
198
  - test/dummy/config/locales/en.yml
200
199
  - test/dummy/config/boot.rb
201
- - test/dummy/tmp/cache/A4A/A50/spec%3Dshoe_color-shoe_id%3D1
202
200
  - test/cache_dumper_test.rb
203
201
  has_rdoc:
@@ -1 +0,0 @@
1
- o: ActiveSupport::Cache::Entry: @valueI"red:ET:@created_atf1453116877.7004755:@expires_in0