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 +4 -4
- data/lib/manage_cache/version.rb +1 -1
- data/lib/manage_cache.rb +3 -3
- data/test/dummy/log/test.log +781 -0
- metadata +1 -3
- data/test/dummy/tmp/cache/A4A/A50/spec%3Dshoe_color-shoe_id%3D1 +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce56f23bde708a289ccc0b630646820b1af6d98c
|
4
|
+
data.tar.gz: ca78e1547f251c8e5edde100dbf0ae783b6d675d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77bfa743d8f1a83980a8f9c0d4f32e8f8fdbfbc8f7b0cf98e2c2d4959cbe1d811e640cb4edc9b53eb174c57a64ffc96b814cd50068aacb02518b9259be048188
|
7
|
+
data.tar.gz: 152643ac4bb14ca47a1fca88a4ccff6fd1081c4b3fbfd9ad2716864f786a9717bcb8709dd1cce6ef1b4ccdb145b5dac2b6c45945e1eeddeba2693ee1b932bd6c
|
data/lib/manage_cache/version.rb
CHANGED
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
|
158
|
+
self.changed != (self.changed - key_specs[:if_changed].map(&:to_s))
|
159
159
|
end
|
160
160
|
end
|
161
161
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -32683,3 +32683,784 @@ UserTest: test_cache_key_for_should_return_the_right_key
|
|
32683
32683
|
ManageCacheTest: test_truth
|
32684
32684
|
---------------------------
|
32685
32685
|
[1m[35m (0.0ms)[0m rollback transaction
|
32686
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32687
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32688
|
+
--------------------------------------------------------------------------------
|
32689
|
+
ShoesControllerTest: test_shoes#index_-cache_should_be_updated_after_shoe_update
|
32690
|
+
--------------------------------------------------------------------------------
|
32691
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32692
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32693
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 14:59:54.316079"], ["updated_at", "2016-01-19 14:59:54.316079"]]
|
32694
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32695
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32696
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32697
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-19 14:59:54.402953"], ["updated_at", "2016-01-19 14:59:54.402953"]]
|
32698
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32699
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32700
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
32701
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
32702
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32703
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32704
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32705
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32706
|
+
----------------------------------------------------------------------------------------
|
32707
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
32708
|
+
----------------------------------------------------------------------------------------
|
32709
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32710
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32711
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32713
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32714
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32715
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32717
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32718
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
32719
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
32720
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32721
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
32722
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
32723
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32724
|
+
-------------------------------------------------------------------------------------------
|
32725
|
+
UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_shoe_update
|
32726
|
+
-------------------------------------------------------------------------------------------
|
32727
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32728
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32729
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 14:59:54.790743"], ["updated_at", "2016-01-19 14:59:54.790743"]]
|
32730
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32731
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32732
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32733
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-19 14:59:54.869194"], ["updated_at", "2016-01-19 14:59:54.869194"]]
|
32734
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32735
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32736
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
32737
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
32738
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32739
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32740
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32741
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32742
|
+
-------------------------------------------------------------------------------------------
|
32743
|
+
UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_user_update
|
32744
|
+
-------------------------------------------------------------------------------------------
|
32745
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32746
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32747
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32749
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32750
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32751
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32753
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32754
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
32755
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
32756
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32757
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
32758
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32759
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32760
|
+
-------------------------------------------------------------------------------------------
|
32761
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
32762
|
+
-------------------------------------------------------------------------------------------
|
32763
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32764
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32765
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 14:59:55.216453"], ["updated_at", "2016-01-19 14:59:55.216453"]]
|
32766
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32767
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32768
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32769
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-19 14:59:55.290634"], ["updated_at", "2016-01-19 14:59:55.290634"]]
|
32770
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32771
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32772
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
32773
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
32774
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32775
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32776
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32777
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32778
|
+
------------------------------------------------------------------------------
|
32779
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
32780
|
+
------------------------------------------------------------------------------
|
32781
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32782
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32783
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32785
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32786
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32787
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32789
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32790
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
32791
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
32792
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32793
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
32794
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32795
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32796
|
+
---------------------------
|
32797
|
+
ManageCacheTest: test_truth
|
32798
|
+
---------------------------
|
32799
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32800
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32801
|
+
--------------------------------------------------------
|
32802
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
32803
|
+
--------------------------------------------------------
|
32804
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32805
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32806
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 14:59:55.648051"], ["updated_at", "2016-01-19 14:59:55.648051"]]
|
32807
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32808
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32809
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32810
|
+
-------------------------------------------------------------------
|
32811
|
+
ShoeTest: test_cache_will_be_deleted_if_specified_attribute_changed
|
32812
|
+
-------------------------------------------------------------------
|
32813
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32814
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32815
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "hans"], ["created_at", "2016-01-19 14:59:55.726074"], ["updated_at", "2016-01-19 14:59:55.726074"]]
|
32816
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32817
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32818
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
32819
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
32820
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32821
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32822
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32823
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32824
|
+
------------------------------------------------------------------------------
|
32825
|
+
ShoeTest: test_cache_will_not_be_deleted_if_specified_attribute_did_not_change
|
32826
|
+
------------------------------------------------------------------------------
|
32827
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32828
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32829
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32831
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32832
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
32833
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
32834
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32835
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
32836
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32837
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32838
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32839
|
+
----------------------------------------------------------------------------------------
|
32840
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
32841
|
+
----------------------------------------------------------------------------------------
|
32842
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32843
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32844
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.649715"], ["updated_at", "2016-01-19 15:00:29.649715"]]
|
32845
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32846
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32847
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32848
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-19 15:00:29.658101"], ["updated_at", "2016-01-19 15:00:29.658101"]]
|
32849
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32850
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32851
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
32852
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
32853
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32854
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32855
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32856
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32857
|
+
-------------------------------------------------------------------------------------------
|
32858
|
+
UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_shoe_update
|
32859
|
+
-------------------------------------------------------------------------------------------
|
32860
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32861
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32862
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32864
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32865
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32866
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32868
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32869
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
32870
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
32871
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32872
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
32873
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32874
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32875
|
+
-------------------------------------------------------------------------------------------
|
32876
|
+
UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_user_update
|
32877
|
+
-------------------------------------------------------------------------------------------
|
32878
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32879
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32880
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.681952"], ["updated_at", "2016-01-19 15:00:29.681952"]]
|
32881
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32882
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32883
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32884
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-19 15:00:29.683327"], ["updated_at", "2016-01-19 15:00:29.683327"]]
|
32885
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32886
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32887
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
32888
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
32889
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32890
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32891
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32892
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32893
|
+
-------------------------------------------------------------------------------------------
|
32894
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
32895
|
+
-------------------------------------------------------------------------------------------
|
32896
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32897
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32898
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32900
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32901
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32902
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32904
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32905
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
32906
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
32907
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32908
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
32909
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32910
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32911
|
+
------------------------------------------------------------------------------
|
32912
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
32913
|
+
------------------------------------------------------------------------------
|
32914
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32915
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32916
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.692912"], ["updated_at", "2016-01-19 15:00:29.692912"]]
|
32917
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32918
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32919
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32920
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-19 15:00:29.694255"], ["updated_at", "2016-01-19 15:00:29.694255"]]
|
32921
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32922
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32923
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
32924
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
32925
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32926
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32927
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32928
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32929
|
+
---------------------------
|
32930
|
+
ManageCacheTest: test_truth
|
32931
|
+
---------------------------
|
32932
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32933
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32934
|
+
------------------------------------------------------------------------------
|
32935
|
+
ShoeTest: test_cache_will_not_be_deleted_if_specified_attribute_did_not_change
|
32936
|
+
------------------------------------------------------------------------------
|
32937
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32938
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32939
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32941
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32942
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
32943
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
32944
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32945
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
32946
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32947
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32948
|
+
-------------------------------------------------------------------
|
32949
|
+
ShoeTest: test_cache_will_be_deleted_if_specified_attribute_changed
|
32950
|
+
-------------------------------------------------------------------
|
32951
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32952
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32953
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "hans"], ["created_at", "2016-01-19 15:00:29.702858"], ["updated_at", "2016-01-19 15:00:29.702858"]]
|
32954
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32955
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32956
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
32957
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
32958
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32959
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32960
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32961
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32962
|
+
--------------------------------------------------------------------------------
|
32963
|
+
ShoesControllerTest: test_shoes#index_-cache_should_be_updated_after_shoe_update
|
32964
|
+
--------------------------------------------------------------------------------
|
32965
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32966
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32967
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32969
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32970
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32971
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32973
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32974
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
32975
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
32976
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
32977
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
32978
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32979
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32980
|
+
--------------------------------------------------------
|
32981
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
32982
|
+
--------------------------------------------------------
|
32983
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32984
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32985
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 15:00:29.718464"], ["updated_at", "2016-01-19 15:00:29.718464"]]
|
32986
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32987
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32988
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32989
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32990
|
+
-------------------------------------------------------------------
|
32991
|
+
ShoeTest: test_cache_will_be_deleted_if_specified_attribute_changed
|
32992
|
+
-------------------------------------------------------------------
|
32993
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32994
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
32995
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "hans"], ["created_at", "2016-01-19 15:02:09.986322"], ["updated_at", "2016-01-19 15:02:09.986322"]]
|
32996
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32997
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32998
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
32999
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33000
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33001
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33002
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33004
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33005
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33006
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33007
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33008
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "blue"], ["updated_at", "2016-01-19 15:02:10.009954"], ["id", 1]]
|
33009
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33010
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33011
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33012
|
+
------------------------------------------------------------------------------
|
33013
|
+
ShoeTest: test_cache_will_not_be_deleted_if_specified_attribute_did_not_change
|
33014
|
+
------------------------------------------------------------------------------
|
33015
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33016
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33017
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33019
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33020
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33021
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33022
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33023
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33024
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33026
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33027
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33028
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33029
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33030
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "name" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["name", "Nike"], ["updated_at", "2016-01-19 15:02:10.026383"], ["id", 1]]
|
33031
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33032
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33033
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33034
|
+
-------------------------------------------------------------------------------------------
|
33035
|
+
UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_user_update
|
33036
|
+
-------------------------------------------------------------------------------------------
|
33037
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33038
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33039
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 15:02:10.049493"], ["updated_at", "2016-01-19 15:02:10.049493"]]
|
33040
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33041
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33042
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33043
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-19 15:02:10.050942"], ["updated_at", "2016-01-19 15:02:10.050942"]]
|
33044
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33045
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33046
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
33047
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33048
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33049
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33050
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33052
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33053
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33054
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33055
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33056
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33057
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33059
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33060
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
33061
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33062
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33063
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33064
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33066
|
+
Processing by UsersController#index as HTML
|
33067
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
33068
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33069
|
+
Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.1ms)
|
33070
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
33074
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33088
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33089
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-19 15:02:10.225128"], ["id", 1]]
|
33090
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33091
|
+
[1m[35m (0.0ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33092
|
+
Processing by UsersController#index as HTML
|
33093
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
33094
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
33100
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33109
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33110
|
+
------------------------------------------------------------------------------
|
33111
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
33112
|
+
------------------------------------------------------------------------------
|
33113
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33114
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33115
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 15:02:10.234068"], ["updated_at", "2016-01-19 15:02:10.234068"]]
|
33116
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33117
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33118
|
+
[1m[35m (0.0ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33119
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-19 15:02:10.235388"], ["updated_at", "2016-01-19 15:02:10.235388"]]
|
33120
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33121
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33122
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
33123
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33124
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33125
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33126
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33128
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33129
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33130
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33131
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33132
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33133
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33135
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33136
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
33137
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33138
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33139
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33140
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33142
|
+
Processing by UsersController#show as HTML
|
33143
|
+
Parameters: {"id"=>"1"}
|
33144
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33150
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33151
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-19 15:02:10.248316"], ["id", 1]]
|
33152
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33153
|
+
Processing by UsersController#show as HTML
|
33154
|
+
Parameters: {"id"=>"1"}
|
33155
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33161
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33162
|
+
-------------------------------------------------------------------------------------------
|
33163
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
33164
|
+
-------------------------------------------------------------------------------------------
|
33165
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33166
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33167
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33169
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33170
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33171
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33173
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33174
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33175
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33176
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33177
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33178
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33180
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33181
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
33182
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33183
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33184
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33185
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33187
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33188
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33189
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33190
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33191
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33192
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33194
|
+
Processing by UsersController#index as HTML
|
33195
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
33196
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
33202
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
33209
|
+
Read fragment views/ (0.0ms)
|
33210
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
33216
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33217
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33218
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33219
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33220
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33221
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-19 15:02:10.272622"], ["id", 1]]
|
33222
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33223
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
33224
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33225
|
+
Processing by UsersController#index as HTML
|
33226
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
33227
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
33230
|
+
Read fragment views/spec=row_name-user=1-updated_at=2016-01-19 15:02:10 UTC (0.1ms)
|
33231
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
33232
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
33243
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33244
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33245
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33246
|
+
-------------------------------------------------------------------------------------------
|
33247
|
+
UsersControllerTest: test_users#index_users_index-cache_should_be_updated_after_shoe_update
|
33248
|
+
-------------------------------------------------------------------------------------------
|
33249
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33250
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33251
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33253
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33254
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33255
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33257
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33258
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33259
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33260
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33261
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33262
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33264
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33265
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
33266
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33267
|
+
[1m[35m (0.0ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33268
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33269
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33271
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33272
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33273
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33274
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33275
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33276
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33278
|
+
Processing by UsersController#index as HTML
|
33279
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m
|
33280
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
33286
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
33293
|
+
Read fragment views/ (0.0ms)
|
33294
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33300
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33301
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33302
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33303
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33304
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-19 15:02:10.301196"], ["id", 1]]
|
33305
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33306
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
33307
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33308
|
+
Processing by UsersController#index as HTML
|
33309
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
33310
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33311
|
+
Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.0ms)
|
33312
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
33315
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
33326
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33327
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33328
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33329
|
+
----------------------------------------------------------------------------------------
|
33330
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
33331
|
+
----------------------------------------------------------------------------------------
|
33332
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33333
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33334
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-19 15:02:10.310326"], ["updated_at", "2016-01-19 15:02:10.310326"]]
|
33335
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33336
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33337
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33338
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-19 15:02:10.311662"], ["updated_at", "2016-01-19 15:02:10.311662"]]
|
33339
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33340
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33341
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
33342
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33343
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33344
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33345
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33347
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33348
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33349
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33350
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33351
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33352
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33354
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33355
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
33356
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33357
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33358
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33359
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33361
|
+
Processing by UsersController#index as HTML
|
33362
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
33363
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33364
|
+
Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.0ms)
|
33365
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
33369
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33383
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33384
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-19 15:02:10.328689"], ["id", 1]]
|
33385
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33386
|
+
Processing by UsersController#index as HTML
|
33387
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
33388
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33389
|
+
Read fragment views/spec=users_index-max_up=2016-01-19 15:02:10 UTC (0.0ms)
|
33390
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
33394
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33403
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33404
|
+
--------------------------------------------------------
|
33405
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
33406
|
+
--------------------------------------------------------
|
33407
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33408
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33409
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33411
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33412
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33413
|
+
--------------------------------------------------------------------------------
|
33414
|
+
ShoesControllerTest: test_shoes#index_-cache_should_be_updated_after_shoe_update
|
33415
|
+
--------------------------------------------------------------------------------
|
33416
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33417
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33418
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33420
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33421
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33422
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33424
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33425
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33426
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33427
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33428
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33429
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33431
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33432
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
33433
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33434
|
+
[1m[35m (0.0ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33435
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33436
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33438
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33439
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33440
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
33441
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("users"."updated_at") FROM "users"[0m
|
33442
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33443
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33445
|
+
Processing by ShoesController#index as HTML
|
33446
|
+
Parameters: {"page"=>"1"}
|
33447
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" LIMIT 1 OFFSET 0[0m
|
33448
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33454
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33455
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
33456
|
+
[1m[35m (0.1ms)[0m SELECT MAX("users"."updated_at") FROM "users"
|
33457
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes"[0m
|
33458
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-19 15:02:11.362953"], ["id", 1]]
|
33459
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33460
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes"
|
33461
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33462
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33463
|
+
---------------------------
|
33464
|
+
ManageCacheTest: test_truth
|
33465
|
+
---------------------------
|
33466
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
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.
|
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
|