plugin_get_version() consumes IO on every request
-
Hi,
Please do not call
get_pluginswith every request inplugin_get_version()I found this issue out using tools like
fatrace(linux utility) andXDEBUG_TRACEwithxdebug.collect_paramsset to 3.This increases the load time on large scale websites which use a network drive (which are slow) to keep files in sync across multiple servers.
Disk reads should be avoided.I would suggest you define a constant to declare the version.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘plugin_get_version() consumes IO on every request’ is closed to new replies.