Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 798 forks source link

$cache_path in wp-cache-config.php wont update after migrated to new host #25533

Open IronGhost63 opened 7 years ago

IronGhost63 commented 7 years ago

I just migrated my website (tyria.in.th) to new hosting. And WP Super Cache can automatically update WPCACHEHOME in wp-config.php

Somehow my website still break and show the message as following https://imgur.com/d7hpAVW

It happened to be the old path in former hosting. I dig around and find that there is this variable $cache_path in wp-cache-config.php line 31 still using old path and didn't get update when WP Super Cache update WPCACHEHOME in wp-config.php and it cause whole website to break

This line need to be updated manually with new wp-content path to fix the problem.

IronGhost63 commented 7 years ago

Anyway, Why WP Super Cache use this variable in anything instead of just using WPCACHEHOME ?

donnchawp commented 7 years ago

the $cache_path variable points at your cache directory, while WPCACHEHOME points at where WP Super Cache is installed.

If $cache_path is already set then the plugin doesn't know the path has changed. It's something the plugin should handle better.