Use PHP's spl_autoload to only load the necessary wordpress classes
Like Ketwaroo suggests in the thread - http://wordpress.org/support/topic/use-spl_autoload-to-load-classes?replies=1
Use PHP's spl_autoload to only load the classes that are really needed at that moment.
Requires renaming of some files, but stimulates file naming consistency.
I agree with tobias, we need to load just needed libraries and classes and not all the engine in order to speed up responses.
If something needs to be improved is the speed.
I agree, wordpress is a very good CMS but it is still slow for websites with huges databases !
Tell that to WP.com :)
Their DB is probably bigger than all of ours combined.
Yes but how many bays of servers have they? hum?
Will be this feature change the page download speed? I dont think so.
Agreed. There are better and more effective ways to improve page download speed. This wouldn't make much of a difference.
Have tested this with ~3/4 of classes in wp-includes. Absolutely no difference in speed
Thanks for posting your findings Deepwater Wells!
I implemented it and haven't upgraded wp since because it will break my whole site.
Also - even if WP would use autoload, the spl_autoload causes problems with plugins so...
I'll switch back to conventional classloading asap
So in conclusion, let's NOT use spl_autoload
RSS feed for this topic
You must log in to post.