-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI doesn't obey custom WP_CONTENT_DIR in Directory/Expiration Time #206
Comments
Hmm. I don't think that it should. The configured cache directory is always relative to |
See below. |
2 similar comments
See below. |
See below. |
False alarmSorry, everything is working as expected, Quick Cache writes cache files to the custom The problem was that the previous configuration was being used. I needed to press "Restore" in Quick Cache to reset its settings. (I thought I had done that before testing, but I guess not!) |
Actually, maybe there's still an issue here... @jaswsinc writes...
But what if // ABSPATH = /var/www/qcpro.dev/wordpress/
define('WP_CONTENT_DIR', '/var/www/qcpro.dev/data/wp-content');
define('WP_CONTENT_URL','http://qcpro.dev/data/wp-content'); Then, the Quick Cache UI would reflect the wrong path, because it shows: ABSPATH . WP_CONTENT_DIR . "cache/quick-cache/cache/" That said, the cache files would still be written to the correct place because this line in $wp_content_dir_relative = // Considers custom `WP_CONTENT_DIR` locations.
trim(str_replace(ABSPATH, '', WP_CONTENT_DIR), '\\/'." \t\n\r\0\x0B"); |
This line and this method will always force whatever is configured to be referenced under If I think that's as it should be. No matter what, we need the directory to be within |
I suppose if we use |
In that case, I feel that #95 needs to be reopened, as technically Quick Cache does not fully support a custom WordPress specifically mentions that If a site owner can change The docs also say that if you move your |
Yep, I agree. I don't see this being a major issue either. QC currently doesn't use I also checked the source code for the HTML Compressor, and it uses both I think all that needs to happen here, is that we need to remove |
Got it. Thanks! I'll reopen #95 and track this issue specifically for updating the UI. |
Additional work toward achieving wpsharks/comet-cache#130 Also resolves wpsharks/comet-cache#206 Also resolves wpsharks/comet-cache#95 Also resolves wpsharks/comet-cache#193
When a custom
WP_CONTENT_DIR
is set, the Directory/Expiration Time --> Base Cache Directory does not show the custom path, but rather uses the default.Reported here: http://wordpress.org/support/topic/base-cache-directory?replies=1#post-5662043
The text was updated successfully, but these errors were encountered: