• Resolved Steph Wells

    (@sswells)


    Hi there,

    Thanks so much for the great plugin!

    I just installed it and noticed it added 1MB to the baseline memory usage on the front-end of the site. Since this plugin is only for the admin area, I wonder if it’s possible to only run the code on the back-end?

    For example, changing these three lines to use admin hooks cut off almost the full 1MB of memory usage.

    add_action('admin_init', [$this, 'init'], 1000);
    add_action('admin_init', [$this, 'initAfter'], 1100);
    add_action('admin_init', [$this, 'adminInit'], 1010);

    It looks like do_action(‘publishpress_checklists_init’); still has to fire on init right now.

    Is this a change you would consider making to improve performance and so I can update easily in the future?

    Thanks again for the great plugin! I’d be happy to share some extra code I’ve added for checks like require external links to open in a new tab.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Front-end memory load’ is closed to new replies.