Caches_action/ before_filter problem

Hello, I have a method called “check_permission” that is set to run as a
before_fitler and which checks if a user has the authorization to view a
page.

This page is displayed through the method “show” which is cached through
the tag “caches_action :show”

My problem is that once a user with authorization to a page accesses it,
then afterwards all users (with or without authorization) can access it.
It seems that once the page is displayed once, then the before_filter’s
result is cached and thus authorization is never checked for again.

If I remove the tag “caches_action :show” then all works as it should,
but this is not a satisfactory solution…

I’m pulling my hairs out over this :frowning: