I have an association between users and subscriptions.
I’m using REST so in my subscriptions controller I’m using a
before_filter which loads the current user from cache. However, I
notice when running the index action that I have a cache hit in the logs
4 times which I’m assuming represents the 4 actions in my controller.
Does the controller run the before_filter for each action before the
actions are actually run?
On 16 Aug 2008, at 01:13, Nate L. wrote:
I have an association between users and subscriptions.
I’m using REST so in my subscriptions controller I’m using a
before_filter which loads the current user from cache. However, I
notice when running the index action that I have a cache hit in the
logs
4 times which I’m assuming represents the 4 actions in my controller.
Does the controller run the before_filter for each action before the
actions are actually run?
I’ve certainly never seen that happen and it’s not what’s supposed to
happen.
Fred