On modr8_form_submit, cache_clear_all is invoked for every approved node.
cache_clear_all is expensive and doesn't need to be called more than once per page view.
This patch creates a flag which, if set, clears the cache once and only once.

This is marked "bug report" because the amount of overhead created by so many cache_clear_all's could cause out of memory errors or http timeouts.

CommentFileSizeAuthor
modr8_admin.inc_.patch1.09 KBaaronbauman

Comments

pwolanin’s picture

Status: Needs review » Needs work

I change this code to use node_save() - which itself clear the cache every time. So - this is more of a core issue now than a modr8 issue.