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

  1. formless
    Posted 2 years 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.


  2. formless
    Posted 1 year 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • StaticPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic