WordPress.org

Ready to get started?Download WordPress

Forums

WordPress File Monitor Plus
[resolved] Cannot add 'exact dirs to ignore' in plugin settings (11 posts)

  1. Andy Keith
    Member
    Posted 2 years ago #

    Hi,

    If I try to add an exact directory to ignore in the plugin settings, the directory disappears from the list after clicking Save.

    The 'dir names to ignore' option works fine.

    Many thanks,

    Andy

    http://wordpress.org/extend/plugins/wordpress-file-monitor-plus/

  2. Devstorm
    Member
    Posted 2 years ago #

    Hi,

    I have this problem, too. And additionally the wp-minify cache-directory cannot be excluded. I also tried the other directories option, to no avail.

    /wp-content/plugins/wp-minify/cache/4661780795cf9d458a0c8e4e4ba0e549.css
    /wp-content/plugins/wp-minify/cache/9ce82f73f2f0496742c18ab22bd815ae.js

    Thanlk you for looking into this.

  3. Scott Cariss
    Member
    Plugin Author

    Posted 2 years ago #

    It would only be disappearing from the list if the directory you are entering is invalid. You need to enter the 'exact' directory to be ignored including the full base dir.

    E.G.

    /home/username/public_html/wordpress/wp-content/plugins/wp-minify/cache

  4. Andy Keith
    Member
    Posted 2 years ago #

    Hi Scott,

    Yes putting the full path in has worked. Thanks very much!

    I have another quick question if that's ok. Can I add partial directory paths to the 'Dir Names To Ignore' option? E.g if I set it to 'wp-content/uploads', will it ignore files that contain this directory path?

    Many thanks.

  5. Scott Cariss
    Member
    Plugin Author

    Posted 2 years ago #

    No you cannot place partial directories in any of the settings.

    You need to ignore a full path like

    /path/to/wp/wp-content/uploads

    or a folder name uploads however if you use a folder name to ignore then any folder scanned with that name is ignored. A good example of using this setting is ignoring .svn folders

  6. Andy Keith
    Member
    Posted 2 years ago #

    I see, thanks for the info.

  7. Dzynit
    Member
    Posted 2 years ago #

    I think this would be very helpful information as a notation in the plugin's settings page next to the textarea.

  8. flashbuddy
    Member
    Posted 2 years ago #

    Yes, some sample paths, especially common paths:
    /home/you/public_html/wp-admin/error_log

  9. Scott Cariss
    Member
    Plugin Author

    Posted 2 years ago #

    @flashbuddy - if you want to ignore error logs you would be better using: */error_log so that it ignores all error_logs on your site.

  10. Jpsy
    Member
    Posted 2 years ago #

    > ...you would be better using: */error_log so that it ignores all error_logs on your site.

    So wildcards for the path are allowed? I thought you said that only full paths will work. Some examples close to the input field would definitely help (similar to the examples close to the File Check Root field).

  11. Scott Cariss
    Member
    Plugin Author

    Posted 2 years ago #

    Hi @Jpsy,

    Yes * wildcards are allowed in paths. This was added with one of the later versions.

    So using */error_log will exclude all error log files.

    You may need to play around with settings to get the right wild card combination to get it to work. Essentially the file/dir name is checked with the function fnmatch().

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic