resolve/refinerycms — Issue #1322: On localized cache keys an some FS types refinery will fail to store cache
Author: kalabiyau
Created: 2012-02-23 11:34:35+00:00
State: open

To reproduce:

1) Localized refinery - in my case to Russian
2) Some encrypted fs (eCryptfs in my case) with not regular filesize limit
3) Bug within ActiveSupport related to convert UTF to Binary - see https://github.com/rails/rails/pull/4911

On Mac all works like expected.
But some Linux production servers are encrypted.

In this case not very long cache key will be converted to Binary to some this kind of string
```
%2Fru%2F%D0%B2%D1%82%D0%BE%D1%80%D0%BE%D0%B9%23nested_url
```

My monkey patch: to fix this

```
https://github.com/kalabiyau/refinerycms/commit/e5380ceb8978828757c13a82a9570b21cc37fdf1
```

What about performance - this will happen only on save, which is not so common for middle size site. And md5 is very fast :)
But i assume, this is ugly approach to fix a problem.