We needed this feature in our project for several reasons.
Based on this guide : https://www.drupal.org/node/150220 adapted for D7
patched attached
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | do-2580259-4-views_navigation-own-cache-bin.patch | 2.71 KB | heine |
| #2 | views_navigation-own-cache-bin-2580259-2.patch | 1.6 KB | lunatic |
| views_navigation-own-cache-bin.patch | 1.24 KB | lunatic |
Comments
Comment #2
lunatic commentedForgot to add hook_flush_caches (our use case is never clear them)
Attaching updated patch
Comment #3
lunatic commentedWe have this on production for about a week and seems to work fine
Moving it to RTBC
Comment #4
heine commentedChanges compared to the earlier patch:
- hook_flush_caches moved to the module file, or it will never be invoked.
- hook_update_N cannot use current schema information, changed to hardcoded schema.
We need this because we use memcache and views_navigation cache entries are quickly evicted. Users then see a "Sorry, could not find the requested page." message. We also don't want these cache items in memcache.
Using a separate cachebin allows us to store the cache items in the database.
Comment #5
BarisW commentedWe could use the static VIEWS_NAVIGATION_CACHE_BIN here.
I'll fix this when committing the patch.
Comment #7
BarisW commentedPushed to DEV. Thanks both!