From e8688ddb33347eb9de078843a75a075b70cc9f04 Mon Sep 17 00:00:00 2001 From: st0012 Date: Sun, 3 Feb 2019 22:06:38 +0800 Subject: Fix partial caching ignore repeated items issue This is because we only use hash to maintain the result. So when the key are the same, the result would be skipped. The solution is to maintain an array for tracking every item's position to restructure the result. --- actionview/test/fixtures/test/_cached_set.erb | 1 + 1 file changed, 1 insertion(+) create mode 100644 actionview/test/fixtures/test/_cached_set.erb (limited to 'actionview/test/fixtures') diff --git a/actionview/test/fixtures/test/_cached_set.erb b/actionview/test/fixtures/test/_cached_set.erb new file mode 100644 index 0000000000..cd492fc519 --- /dev/null +++ b/actionview/test/fixtures/test/_cached_set.erb @@ -0,0 +1 @@ +<%= cached_set.first %> | <%= cached_set.second %> | <%= cached_set.third %> | <%= cached_set.fourth %> | <%= cached_set.fifth %> -- cgit v1.2.3