Probable bug
-
I am having troubles with cache preload. It works but sometimes it deletes all the files after running. Still investigating probable causes with debug activated.
I have found a probable bug for you to check.
The code that i conside bugged is:
$url_info = parse_url( $url );
$dir = get_supercache_dir() . $url_info[ ‘path’ ];I get a double slash with that.
My wp website is inside a subfolder, like https://www.tld.com/us/News/
So get supercache dir gets /wp-content/cache/supercache/www.tld.com/us/news/
and url_info gets /us/News/whatever.
this will bring $dir to be /wp-content/cache/supercache/www.tld.com/us/news//us/News/whatever with a double slash that causes “wpsc_get_realpath: directory does not exist”I’m still not sure how to fix this myself and if this causes problems else where.
Hope this helps and to get feedback on how to solve it
- The topic ‘Probable bug’ is closed to new replies.