pluginkollektiv / cachify

Smart but efficient cache solution for WordPress. Use DB, HDD, APC or Memcached for storing your blog pages. Make WordPress faster!
https://wordpress.org/plugins/cachify/
GNU General Public License v2.0
101 stars 32 forks source link

Make change to robots.txt configurable #288

Closed raffaelj closed 5 months ago

raffaelj commented 1 year ago

As described in #282, robots.txt produces invalid output. I don't need that change to robots.txt at all, because I deny direct access to cached files via .htaccess:

# Deny direct access to cache folder, but allow internal redirect
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^wp-content/cache/cachify/ - [F]

Expected behavior

I want to click a checkbox in the settings ui to disable automatic changes to robots.txt. When disabled, the hook do_robots is skipped.

System: