• Resolved Bob

    (@bobf000)


    This looks like a promising autoload tool. Tried some others and those didn’t do.

    A small bug: When selecting “All” as Items-per-page the URI-parameters are page=enhanced-autoload-manager&mode=expert&search&count=-1&orderby=size&order=DESC&_wpnonce=…

    This only shows 20 items per page, not all.

    When manually changing count=-1 to count=999 in URI it does show all my 290 entries so the routine itself works. It’s just that the “-1” doesn’t seem to be the right parameter (“0” and “1000” won’t work either).

    And a question… is it possible to “lock” an autoload option? Sometimes, usually after updates or system re-config. an autoload entries set to “no” will be automatically set to “yes” again by WordPress, mostly “_trancient” entries. Have to check those each time after an update and put them back to “no” often.

    • This topic was modified 8 months, 1 week ago by Bob. Reason: typo
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Rai Ansar

    (@raiansar)

    Thank you so much Bob for showing appreciation. I faced similar problems with all of the plugins which is why I came up with this one. I am glad you liked it. I will be pushing an update in a few hours to handle the pagination better and when in all users would be able to see infinite options rather than pagination which is hectic. Also I will introduce a locking feature which will allow users to lock any autoload value, which if replaced by any updates would be updated again by Enhanced Autoload Manager.

    Thread Starter Bob

    (@bobf000)

    The “All” items per page is just a minor inconvenience.

    I wonder how a “lock” option works out, like, how will EAM know that an entry has been changed by an external plugin? And what if the entry is not relevant anymore in case the related plugin was uninstalled?

    Well, I’ll see πŸ™‚ Good luck.

    Plugin Author Rai Ansar

    (@raiansar)

    Hello @bobf000 I have updated the plugin:

    1. No more pagination if you pick the option “ALL”
    2. Also added Lock/Unlock feature.
    3. Made a few UI improvements you will like.

    Thank you for the support.

    Plugin Author Rai Ansar

    (@raiansar)

    @bobf000 on your query regarding the functionality of Lock/Unlock:

    The plugin stores locked autoload values in a separate WordPress option (edal_locked_autoloads). When you lock
    an autoload option, it saves both the option name and its current autoload value (‘yes’ or ‘no’).

    Automatic Restoration:
    The plugin hooks into WordPress’s admin_init action, which runs on every admin page load. Each time:

    1. It checks all locked options against their current database values
    2. If any locked option’s autoload value has been changed (e.g., by a plugin update or WordPress core), it
      automatically restores it to the locked value
    3. It clears the WordPress cache to ensure the change takes effect immediately Handling Uninstalled Plugins:
      If a plugin is uninstalled and its options are removed from the database:
    • The lock simply becomes inactive (no harm done)
    • The locked entry remains in our list but won’t affect anything since the option no longer exists
    • You can unlock it manually to clean up, or it will be ignored automatically Example:
      If you lock _transient_timeout_xyz as ‘no’, and WordPress or a plugin update changes it back to ‘yes’,
      Enhanced Autoload Manager will detect this on the next admin page load and automatically change it back to
      ‘no’ – keeping your optimization intact. The locks persist until you manually unlock them, giving you full control over which autoload values should be
      protected from external changes.
    Thread Starter Bob

    (@bobf000)

    I’m impressed by the fast update!

    Everything seems to work as intended. Can’t test the “lock” option right now as I don’t have any that needs to.

    I noticed it only shows the enabled autoloads. The ones I disabled prior (with SQL manager) to the EAM install aren’t listed. Is this intentional? Not that I really need such an option because it’s more a matter of disabling it and not to enable any πŸ™‚

    Plugin Author Rai Ansar

    (@raiansar)

    My plugin keeps record of which ones were enabled in another value, which is why it can help you enable those disabled by it but can’t help you enable the ones already disabled. I will work on a solution which would allow users to enable autoloads disabled prior to Enhanced Autoload Manager but on the other hand I want to keep it lightweight and fast, so it is going to be a tricky solution.;

    Thread Starter Bob

    (@bobf000)

    For me it is good as it is now. The main issue was Disabling, not Enabling. Also, I think feature users will appreciate the “lock” option. I can’t imagine I’m the only one who gets annoyed when having to check and set autoload options over and over again.

    In the rare case something needs to be enabled one can use PHPadmin anyways.

    I guess the plugin itself has no impact on public site performance as it only runs in Admin-mode so no issues to be expected there either.

    Thread Starter Bob

    (@bobf000)

    The “lock” feature doesn’t seem to work as expected.

    _transient_wp_styles_for_blocks has been set to “disabled” and “locked” but keeps returning as soon trancients are removed.

    The EAM-status still shows “disabled” and “locked” but LiteSpeed reports that it really is there: _transient_wp_styles_for_blocks on 516

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Items per page’ is closed to new replies.