WordPress.org

Forums

StaticPress
[resolved] How to stop fetching files under /wp-include/ and /wp-admin/ ? (2 posts)

  1. formless
    Member
    Posted 11 months ago #

    First of all, thank you for the plugin.

    I am testing your plugin on a test site with only 3 pages.
    Html files are generated all fine,
    but it takes more than 5mins and downloads over 500files under /wp-include/ and /wp-admin/ which is not used in front-end at all.

    Could you please point out any possible mistake which I might be making?

    Thank you again in advance.

    https://wordpress.org/plugins/staticpress/

  2. formless
    Member
    Posted 11 months ago #

    Reading through the codes, I think I understood your design of this plugin.
    So I came to do this change to /includes/class-static_press.php.

    //$this->scan_file(trailingslashit(ABSPATH).'wp-admin/', '{'.implode(',',$static_files_filter).'}', true),
    //$this->scan_file(trailingslashit(ABSPATH).'wp-includes/', '{'.implode(',',$static_files_filter).'}', true),
    //$this->scan_file(trailingslashit(WP_CONTENT_DIR), '{'.implode(',',$static_files_filter).'}', true)
    $this->scan_file(trailingslashit(WP_CONTENT_DIR).'uploads/', '{'.implode(',',$static_files_filter).'}', true),
    $this->scan_file(trailingslashit(WP_CONTENT_DIR).'themes/', '{'.implode(',',$static_files_filter).'}', true)

    Thank you again for your nice plugin!

Reply

You must log in to post.

About this Plugin

  • StaticPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic