WPCACHEHOME path should not be hardcoded
-
Hardcoding the path is not a good idea, because people sometimes need to move their WordPress installation or to use it on both a production and a test machine with different paths. Something like the following should be used instead, in order to make everything work more smoothly:
define( 'WPCACHEHOME', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'wp-content' . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . 'wp-super-cache' . DIRECTORY_SEPARATOR ); //Added by WP-Cache Manager
Or you can just use
dirname(__FILE__)
inside your PHP files.
- The topic ‘WPCACHEHOME path should not be hardcoded’ is closed to new replies.