Make sure updated $cache_path ends in '/' #77
+3
−2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
basename()removes the trailing slash, which is expected in the$cache_pathvariable / config file. Without this fix, you can enter /some/path/wp-content/cache/ and end up with /some/path/wp-content/cachesupercache/ , .../wp-content/cachemeta/ , etc.Also, don't bother updating the config file if the path hasn't changed.