You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version-specific upgrade notices should get their own class to keep things clean and improve long-term performance. This class can work the same way as actions.php and the actions class.
@jaswsinc writes...
What I was thinking is that these will build up over time, so they increase memory consumption by being in the core plugin file and loaded at all times; even though we only use them on activation. So, if you moved them into their own class, and loaded that class on-demand; that would reduce the overhead and help organize them better too maybe.
[...]
i.e. inside that function you could require dirname(__FILE__).'/includes/upgrade-handlers.php'; or something like that. Then instantiate that class and call upon the methods/properties that you need from the main plugin file.
Much like we do with the actions.php file.
See also in quick-cache.inc.php: the check_version() method, where these upgrade notices currently reside.
The text was updated successfully, but these errors were encountered:
Version-specific upgrade notices should get their own class to keep things clean and improve long-term performance. This class can work the same way as
actions.php
and theactions
class.@jaswsinc writes...
See also in
quick-cache.inc.php
: thecheck_version()
method, where these upgrade notices currently reside.The text was updated successfully, but these errors were encountered: