Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I'm not entirely sure what you mean regarding the views part.
It is possible to use cache_graceful() manually, like described on the project frontpage. It was originally designed for developer use, but has later been equipped with the Drupal cache backend & Views cache handler.
I don't think Cache Graceful is the way to go for you, if you want to create a system that rebuilds cache through notification, instead of invalidating upon request. But you have given me an idea to extend Cache Graceful.
1.) cache_graceful_invalidate($cid); // Invalidate $cid without deleting it, making it rebuild on next request.
2.) cache_graceful_rebuild($cid); // Rebuild
I looked at the other thread and saw there were a couple of other suggestions. Let me know what you find out.
Comments
Comment #1
gielfeldt commentedI'm not entirely sure what you mean regarding the views part.
It is possible to use cache_graceful() manually, like described on the project frontpage. It was originally designed for developer use, but has later been equipped with the Drupal cache backend & Views cache handler.
Comment #2
ShadowMonster commentedThanks for answer
I would like manually clean and rebuild in background particular view cache - do not know yet the API but maybe something like:
$view = views_get_view;
cache_graceful($key, array('view', $view), 'cache', 20, 10); ?
It's regarding my other issue: #1545794: Rebuild view cache manually
Comment #3
gielfeldt commentedI don't think Cache Graceful is the way to go for you, if you want to create a system that rebuilds cache through notification, instead of invalidating upon request. But you have given me an idea to extend Cache Graceful.
1.) cache_graceful_invalidate($cid); // Invalidate $cid without deleting it, making it rebuild on next request.
2.) cache_graceful_rebuild($cid); // Rebuild
I looked at the other thread and saw there were a couple of other suggestions. Let me know what you find out.
Comment #4
gielfeldt commentedHi
Did you find a solution to your problem?
Comment #5
gielfeldt commentedComment #6
gielfeldt commented