the list of disposable email domains is long and growing, however only a
handful are likely to be submitted to a given site. It seems that a local
cache would provide fast response and eliminate redundant queries.

Comments

advseb’s picture

Assigned: Unassigned » advseb

I'm not sure if caching is a good idea. Some domains might get removed from the list and there is no way to get aware of that. However, we could do like a flush every 24 hours of the cache. Do you think that would be enough?

skizzo’s picture

I see... I guess the flushing period should be configurable, as different sites may have widely different needs (e.g.: 3 registration per day, or 300). Actually, reporting the number of "disposable-email attempts" in status page (similar to what Captcha does for blocked forms) would help the administrator in making an informed decision.

skizzo’s picture

Maybe the cache could be flushed at cron based on the (configurable)
number of entries that it contains, rather than on elapsed time?