How to exclude directories
-
Hello, i’ve been using your plugin and considering it as best of its kind here at WP.
Till recently didn’t had the task to exclude directories from the caching but now even after tried 2 possibilities, i can not set it to work and excluding dirs.This is the regex at plugin settings as recommended method to set urls to exclude and i’ve tried with directories but still getting cached copied.
1.
/^\/category\/.+/, /^\/android\/.+/, /^\/tablet\/.+/
This is the function found in your plugins support tickets, also not excluding as it should.
2.add_action('wp', function() { if (has_term( array( 'category', 'android', 'tablet' ), 'post' ) && !defined('DONOTCACHEPAGE')) { define('DONOTCACHEPAGE', true); } } );
Please advise with any appropriate routine.
Thank you, regards
- The topic ‘How to exclude directories’ is closed to new replies.