Tagged: CDN
-
AuthorPosts
-
November 12, 2021 at 9:04 am #44936Site AdminGuest
Hello,
The Custom File List feature for the CDN does not work properly. With the default list of custom files below, when the Upload Custom Files button is clicked, the upload page shows 1853 files to upload:
favicon.ico
{wp_content_dir}/gallery/*
{wp_content_dir}/uploads/avatars/*
{plugins_dir}/wordpress-seo/css/xml-sitemap.xsl
{plugins_dir}/wp-minify/min*
{plugins_dir}/*.js
{plugins_dir}/*.css
{plugins_dir}/*.gif
{plugins_dir}/*.jpg
{plugins_dir}/*.png
However, when the following is added, the number of files to upload does not change, even though there are other files existing in
{wp_content_dir}/uploads/*
If the entire list is removed then the number of files to upload shows 0, so the list is working, but it does not add files that are not included by default. This is a MAJOR limitation as any (mdeia) files that are uploaded would be better servced using the CDN.Also after the CDN debug option is checked (and the setting saved), nothing is added to the source code of the pages. Please explain how to correct these issues.
Thank you.
November 12, 2021 at 9:18 am #44955Marko VasiljevicKeymasterHello,
Thank you for using W3 Total Cache.
I am sorry about the issue you are experiencing and I am happy to assist you with this.
In order to assist you with this properly, I need to ask for some more details.
1. How did you integrate Local CDN with W3 Total Cache? Which CDN type have you used in Performance>General Settigns>CDN? Generic mirror or Self-hosted?
2. Can you please share the website URL? (If you have a problem with being public, I’ll make sure to remove the link before your reply is approved)
3. As for the debug problem, if you have HTML minify enabled in Perfomance>Minify, most likely the HTML snippet is removed.
4. If you are using Self-hosted CDN, can you please confirm that SSH2 extension is installed and also the FTP functions
You can disable HML minify in that case, save all settings and purge the cache to see the output simply add “Performance” to Ignored comment stems:
I hope this helps and please provide more details.
Thanks!November 12, 2021 at 12:09 pm #44956Site AdminGuestHi Marko,
Thanks for your insight and assistance. In response to your questions:
1. Self-hosted/FTP
2. URL removed
3. You are correct, debug output works now. However it does not show any debug info, just the active W3TC components and CDN URLs.
4. Test FTP Server = Test passed
SSH2 extension: Not detected (required for Self-hosted (FTP) CDN SFTP support)
Using FTP not FTPS since self-hosted CDN is local. Is there any reason not using FTPS (or SSH2 not detected) would cause the Custom File List feature to not work?In short, everything seems to work as expected (so far, still testing), except the Custom File List feature.
Thank you.
November 15, 2021 at 12:57 pm #45011Marko VasiljevicKeymasterHello,
Thank you for the information.
Just to confirm, all files are uploaded except the files listed in the Custom files list?
Have you tried just adding the path to a single file and see if it gets uploaded? For example:
/wp-content/gallery/some-image.jpeg
?
Thanks!November 16, 2021 at 8:36 am #45018Site AdminGuest> Just to confirm, all files are uploaded except the files listed in the Custom files list?
No, the files in the default Custom List upload as expected. It is only files that are added to the default list that do not upload. For example
{wp_content_dir}/uploads/*>Have you tried just adding the path to a single file and see if it gets uploaded?
I just tried to upload with only 1 added file path (to a jpg image), and it says 0 files to upload, so no, that does not work. It is simply not recognizing any user inputs.November 16, 2021 at 12:10 pm #45043Marko VasiljevicKeymasterHello,
Thank you for the information.
Let me double-check this and I’ll get back to you once I have more details.
Thanks!December 1, 2021 at 4:20 am #45612Site AdminGuestHi Marko,
Has there been any progress in discovering the cause of this issue?
Thank you.
December 1, 2021 at 4:20 am #45615Site AdminGuestHi again Marko,
OK, I found the problem. It was actually my error in the following setting:
FTP path: Specify the directory where files must be uploaded to be accessible in a web browser (the document root).
To explain, I have been testing this on another site, but this site is not at the root level (I.E. WordPress is installed in a sub-directory on this site), and I failed to add the sub directory to the FTP path.Sorry if I wasted your time. Maybe this well help someone else who makes the same mistake.
Thanks again.
December 1, 2021 at 12:01 pm #45661Marko VasiljevicKeymasterHello,
I was unable to replicate this so I kept testing to see what may be causing this.
Thank you very much for the information and I am glad to know the problem is resolved! -
AuthorPosts
- The topic ‘Local CDN custom files not uploaded’ is closed to new replies.