Open raamdev opened 10 years ago
Cool! I'm thinking that we could start by creating a new class member that would take advantage of the $static
property that QC already has. This could be used to store details about each queued event that we collect in other places. So we might have a new class member that looks something like this.
public function enqueue_auto_purge_event(array $event)
{
static::$static[__FUNCTION__][] = $event;
}
That's just a rough outline, very rough. haha ~ Anyway, later we could loop back through this array (i.e. at end end of the script's execution) and iterate all of the auto-purge events that took place, and decide how to deal with the purges that need to occur — in the most optimized way.
@jaswsinc Sounds good!
Forked from #313 and #288.
In #313 @jaswsinc writes...