• Resolved Pratham

    (@pratham2003)


    Hi,

    Please do not call get_plugins with every request in plugin_get_version()

    I found this issue out using tools like fatrace (linux utility) and XDEBUG_TRACE with xdebug.collect_params set 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.

    • This topic was modified 5 years, 11 months ago by Pratham.
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.