This project is archived and is in readonly mode.

#3138 ✓committed
twalpole

[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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages