Closed (fixed)
Project:
Bean (for Drupal 7)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2014 at 17:39 UTC
Updated:
16 Oct 2014 at 14:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sherakama commentedI am also having the same issue with the cache_block table not being cleared out on a save. This is a problem because even authenticated users see the old content instead of the new updates. Attached is a patch that adds a clear to the cache_block table.
Comment #2
sherakama commentedComment #3
ibotvinn commentedI have applied sherakama's patch (bean-block-cache-clear-save-2201503-1.patch) - and the problem is gone. Many thanks!
Comment #4
sherakama commentedBased on the above comment I am marking as RTBC. Lets get this in!
Comment #5
jlyon commentedThe patch from #1 was clearing all of my bean caches, but it wasn't clearing the block or page cache, so if a bean was saved and no node was saved soon after, the page with the bean would not updated until cron was run (or longer). This patch clears the `cache_page` and `cache_block` caches in addition to all of the bean caches every time a bean is saved, matching the cache clears when the node save form is submitted.
This is probably overkill, and this could probably be done more elegantly with the expire module, but it solved a recurring issue for me on a couple of sites.
Comment #7
fmitchell commented