• Resolved robertmichalski

    (@robertmichalski)


    Maybe you could consider creating a feature to automatically go through each post and page to find all unused auto-loaded values.

    It could queue up jobs using Action-Scheduler to manage the workload and not overload the site.

    Maybe even create a WP-CLI command to run an automatic cleanup.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joost de Valk

    (@joostdevalk)

    Hey! Just leaving it on for a few days actually gives much better data. For example: if you have a large option that’s only needed on some obscure page on your website that nobody ever visits, with what you propose, you wouldn’t see that, as that page would be visited by the automated process, and thus you wouldn’t remove autoload from that option, because the behaviour is not natural visitor behaviour. Whereas if you just leave it on for a few days, the difference becomes clear automatically.

    Thread Starter robertmichalski

    (@robertmichalski)

    Great point Joost, did not think about that at all. The automated way would only find completely unused values, not useless ones. Thank you for the clarification ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automate visitng every page and post to discover unused auto-loaded values’ is closed to new replies.