Sweeper class doesn't work

Hi experts,

I have built a typical cache sweeper class:

Hi,

For whom may get the same problem:

I moved the sweeper declaration 'cache_sweeper :privilege_cache_sweeper'
from UsersController to ApplicationController. And it works for me!

But I still have no idea why this change makes expire_action in cache
sweeper work.

Any explanations are welcome.

Thanks and regards,

.Viet Trung.

Over two years later .. same problem, same fix, thanks!!
But I would also like an answer to the original question .. because i
also don't understand why it only works in the AppController

-ENOCONTEXT