I have a problem with calendar block. When i turn on block caching anonymous users can't see calendar.
I'm not familiar with ajax but it seems to not work when cache used. Is this module compatible with caching?

Comments

timhilliard’s picture

Assigned: Unassigned » timhilliard
StatusFileSize
new367 bytes

I also had the same problem. The problem is that the block has not told drupal that it can't be cached. I have attached a patch that fixes this.

This should probably be committed.

I hope this helps,
Tim

timhilliard’s picture

Status: Active » Needs review

forgot to set status

andribas’s picture

Thank you, I did the same using mysql. it works

timhilliard’s picture

Assigned: timhilliard » Unassigned

unassign so someone else will review my work.

timhilliard’s picture

StatusFileSize
new368 bytes

ok just realised that I created the patch on a computer where I hadn't set tabs to be 2 spaces. Have now fixed.

XpycT’s picture

Dont work for me.(block cashing+authcache+cacherouter(xcache)) :(

byant’s picture

same with me, not works

timhilliard’s picture

ok I've looked at this one deeper. The problem is still caching as far as I can see and what I suspect is happening is that you are applying the patch to the module after it has already been activated. This is a problem as even if the patch is applied it will not pick up the caching value as this gets set the first time the block is found and never gets updated again. I think to fix this permanently it would also need an upgrade script applied in the .install file. However to fix the problem you guys are experiencing you should run the following query.

UPDATE {blocks} SET cache = -1 WHERE module = 'calendar_block' and delta = 0

where {blocks} is your correctly prefixed table for blocks.

I will re-roll the patch when i get more time.

Cheers,
Tim