I know this is early development of this module, but I have a suggestion.

I've added the Mail List opt-in/opt-out to my users edit pages, now they load really slow. This is because we fetch for the lists on every load. No real way around this.

Fixes for this? Optimal solution is MailChimp adds some sort of caching to their PHP interface (unless you guys wrote MCAPI.class.php), I doubt this will happen.

Secondary solution. For those who have chosen cron syncs, on every cron run, create a list cache.If cache exists, use that. This will speed up page loads for people who need the performance. Should a list fail because it's out of sync, on error re-build the cache and try again. If that still fails, display error to and user. Also add a watchdog request telling the admin that their list was out of sync.

Would be nice is MailChimp provided a postback when their lists are updated. These API issues start getting messy real fast :D

Comments

ronan’s picture

Category: feature » task

I agree that some caching needs to be done. It's a little complicated since we would need to cache both the mailing list info and whether or not each user is subscribed to each list, and you really need that info to be fresh when you present the user with the opt-in/opt-out checkboxes.

There are probably ways to reduce requests to the Mailchimp server though.

Ronan

levelos’s picture

Status: Active » Closed (fixed)

closing for now since the architecture has changed so much. If still an issue, lets open a new issue and revisit.