Don't clear cache so many times

aaronbauman - August 6, 2009 - 18:34
Project:modr8
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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.

AttachmentSize
modr8_admin.inc_.patch1.09 KB
 
 

Drupal is a registered trademark of Dries Buytaert.