Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load order from plugin_cache_dir #21

Closed
ghost opened this issue Oct 4, 2014 · 1 comment
Closed

Load order from plugin_cache_dir #21

ghost opened this issue Oct 4, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 4, 2014

From stefdawson on July 21, 2009 10:30:44

Is it desirable to make the plugin load order more deterministic when
dealing with plugin files in the cache? At the moment it seems to loosely
be the order they were uploaded to the directory, but altering a file and
re-uploading it to the cache doesn't necessarily change its load order.

Similarly, changing its filename sometimes does and sometimes does not
change its load order. This appears to be a feature of glob() or possibly
the underlying file inodes.

If the output of glob() was sorted by some arbitrary means (filename?) in
load_plugins(), at least site admins have the option of renaming files to
promote/demote plugins, and can thus alter the order they appear on the
Extensions tab. Would also benefit plugin systems with multiple files in a
suite, to guarantee load behaviour.

Any better ideas?

Original issue: http://code.google.com/p/textpattern/issues/detail?id=17

@ghost
Copy link
Author

ghost commented Oct 4, 2014

From stefdawson on July 26, 2009 16:28:23

This issue was closed by r3257 .

Status: Fixed

@ghost ghost closed this as completed Oct 4, 2014
philwareham pushed a commit that referenced this issue Aug 21, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants