It seems that the way quiz update the properties of the quiz node lead to stale entitycache node cache.

As quiz load its property from quiz_node_properties in a hook_load() and update directly the table in quiz_questions_form_submit() the cache generated by entitycache is not flushed and the new property values are not correct when subsequently loading the quiz node.

CommentFileSizeAuthor
#2 quiz-entitycache-2882170-2.patch667 bytesgarphy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

garphy created an issue. See original summary.

garphy’s picture

Status: Active » Needs review
FileSize
667 bytes

Here's a patch which flush entitcache's cache for the updated quiz node upon quiz_questions_form_submit()

djdevin’s picture

Version: 7.x-4.x-dev » 7.x-5.x-dev
Status: Needs review » Needs work

Hi,

Thanks for your patch. We need to confirm if this is an issue in 5.x first as that is the current version.