Hi there,

In the proces of trying to implement block cache alter into my site, i am running into a problem with Organic groups.
The groupdetail block to be specific.

After configurating the cache settings for this block, the block doesn't sync any more.
For instance, when groupmembership of a user gets approved, the groupdetail block still shows the link "Join"
Also the number of members doesn't get updated once a member has joined.

Modules used within OG are:
actions
notifications
OG_user_roles(external module)
views
(I am unsure whether these or other modules in my site use the nodes grant hook.)

The settings i have tried are:
Per page
Per role
Per user

I have tried both patches (patch applied status confirmed)
Running Drupal 6.26 (On admin/settings/performance having block and page caching enabled)

I have read comment 1 in http://drupal.org/node/795966 which seems to be related to my problem
hovewer i dont really understand how to convert this into a proper solution.

Any help appreciated

Thanks

Comments

held69’s picture

It looks like i am experiencing the same thing with the simplenews module.
Once users have signed up for a newsletter, the signup button in the simplenews block still
shows sign up. (it should change in sign out)

fabianx’s picture

#1: You will probably need to implement your own cache clearing mechanism for the action (form_alter -> submit).

As the block is cached per role, user, page or global the problem is that block cache can't know that the block has changed now.

If there is anything I can do to make this easier, happy to do this, but for now this is rather => can't fix

held69’s picture

Status: Active » Closed (won't fix)

Thanks for clearing this up.

I'll set this on won't fix then....