Azure / wordpress-linux-appservice

MIT License
111 stars 71 forks source link

WordPress editor page does not show media files from blob storage #160

Closed victorlin closed 4 months ago

victorlin commented 4 months ago

From wordpress_azure_blob_storage.md:

You can also free up disk space on App Service by deleting the Media files in wp-content/uploads folder, if they are already stored in Blob Storage. It is however recommended to ensure Blob Storage has all files present in App Service before deleting.

I just tried this and noticed that it breaks media previews in the editor, which references {SITE_URL}/wp-content/uploads and not {AZURE_CDN_URL}/{BLOB_CONTAINER}/wp-content-uploads. Opening the preview in a new tab works fine, but the content manager of my site relies on the real-time preview within the editor.

Questions:

  1. Is there any way to configure W3 Total Cache to inject the CDN endpoints on the editor page in addition to the actual site? I've also asked this on the plugin's repo: https://github.com/BoldGrid/w3-total-cache/issues/923
  2. If not, are there any other workarounds to have working media previews in the editor without keeping files on App Service disk?
ZubaeyrMSFT commented 4 months ago

Hello @victorlin, seems like this is an W3 Total Cache plugin issues and I believe you have already raised an issue there. Closing this issue here.