The static $lookup var is never actually filled with the data from the cache when it's retrieved. So right now, autoload module makes a database query for every class it loads...ouch! The fact that class_exists() triggers autoload by default makes this really icky. Hence the critical.

Simple fix is attached.

CommentFileSizeAuthor
use_static_cache.patch1.04 KBsdboyer

Comments

Crell’s picture

Status: Active » Fixed

Urf. Yeah, that at least is only in the dev, due to recent changes there. :-) Thanks.

Status: Fixed » Closed (fixed)

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