Does anybody have experience how office hours influences the cacheability of views. I mean, the calculation of the "currently opened" or "currently closed" feature must have a negative influence on that.

Comments

johnv’s picture

Title: Office Hours and cash » Office Hours and cache

Good point, we need to set the 'Query results' caching as high as possible, and the 'Rendered Output' as short as possible.
Perhaps we must move some code to hook_views_pre_render() or some other hook.

johnv’s picture

I tested this, and implemented the following patches to make it correct:
#1930324: Time-based caching does not work properly when it is set to 'Never cache'
#652610: Time-based output caching is writing cache when it is set to "never cache"

The CurrentStatus is correct when you set the 'Rendered Output' as short as possible.

johnv’s picture

Status: Active » Closed (works as designed)
johnv’s picture

Issue summary: View changes

Sorry I misspelled the title, please change it to "Office Hours and cache"

johnv’s picture

Title: Office Hours and cache » Views D7 & Field cache for 'Currently Open/Closed' Status formatter ?
Issue summary: View changes