WordPress.org

Support

Support » Plugins and Hacks » StaticPress » [Resolved] How to stop fetching files under /wp-include/ and /wp-admin/ ?

[Resolved] How to stop fetching files under /wp-include/ and /wp-admin/ ?

  • 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/

Viewing 1 replies (of 1 total)
  • 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!

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] How to stop fetching files under /wp-include/ and /wp-admin/ ?’ is closed to new replies.
Skip to toolbar