Active
Project:
Shoutbox
Version:
master
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2010 at 18:06 UTC
Updated:
14 Feb 2012 at 14:12 UTC
An anonymous users do not see new messages.
I think you need to add option to clear cache page (in settings).
Comments
Comment #1
mstef commentedI'm guessing you turned on the cache in the performance settings? What did you expect to happen?
Comment #2
si.mon commentedI encountered the same problem.
I used the shoutbox api in order to clear the cache each time a new shout is posted (as it would happen when a new comment/node/etc. is published). Clearly not the best solution but it works.
Here's the code:
If someone has a better solution I would love to hear it !
Comment #3
mstef commentedWell, this is the block or page? Both? I believe cache options for both can be set explicitly to avoid caching. Sound right?
Comment #4
yareckon commentedThe shoutbox page should definitely be cacheable. When a new shout is set to published though, the cache should be regenerated. Looks like an interesting approach to do this in your snipplet there, but I think that killing the entire drupal cache is a bit overboard? Maybe we could do something like this http://drupal.org/node/42055#comment-3431966 ?
Comment #5
ggevalt commentedHi,
Where should this code be placed?
And since so much time has passed, have you found this to be useful to allow Shoutbox to refresh itself when there is a new submission in the block?
Also, will this resolve the issue that the CSS seems to be blown away once the block is cached?
thanks
geoff
Comment #6
si.mon commentedHello ggevalt,
This code has to be placed in a custom module.
If your module was named "custom_shoutbox" then the code would look like this:
But just a reminder: this is not a viable solution as this is going to clear cache on each insert, edit and delete !
br,
Simon
Comment #7
ggevalt commentedSimon,
Thanks for responding. Didn't see this until now. Will give it a go on a dev site and see what we see. I'll get back here with results, but it is going to be a while.
g