This project is archived and is in readonly mode.

#3138 ✓committed

[PATCH] ActiveSupport::Memoizable - flush_cache fails for methods ending in ?

Reported by twalpole | September 3rd, 2009 @ 07:43 PM

Since the symbols passed to flush_cache are interpreted as part of a regex, passing a symbol ending in ? doesnt clear the cache for that method

foo?(a,b) <= memoized method
flush_cache(:foo?) <= does not flush the cache for foo? instead it flushs for foo

a workaround is to do flush_cache('foo\?') but it would be better if this worked as expected

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket


Referenced by