I'm wondering whether to use the Ctools object cache for this module: http://drupal.org/project/form_email_confirmation

I've currently implemented my own table for storage, and as I only need to retrieve things based on an ID, the Ctools object cache could satisfy that.

However, there needs to be a system to clear old entries -- the module allows anonymous users to confirm a form action via email, and obviously some users will simply never respond (or there will be incorrectly typed addresses, or spammed ones), and these should not build up indefinitely. So on my module's cron run, any object older than a particular (generous) time is deleted.

Can the Ctools object cache do this too?

Comments

merlinofchaos’s picture

Status: Active » Fixed

Yes, CTools object cache does clear on cron. See includes/object-cache.cron.inc.

Right now it seems to be hardcoded to clean up that haven't been touched in 7 days.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.