Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7504

Investigate media file replace on stateless

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • None
    • 8
    • Media Library
    • Sprint #238

      Summary

      This is a first step investigation as a way to find a solution for the Media Library asset version control idea. Based on this ticket on stateless repo, there is a plugin that may offer a replacement functionality for media files.

      Requirements

      • The plugin has already been added to the Gutenberg instance. Test if it works as expected and it's compatible with wp-stateless, especially with pdf files.
      • Verify that the media file is being replaced and its original url is preserved. This may require some browser cache cleaning. And with the "Disable Cache" option enabled on browser network tab. 
      • Review the plugin's source code to assess its maturity. We can also pass it through SonarCloud.
      • Investigate if the plugin offers a hook after a file is been replaced (maybe wp_handle_upload?). Use that hook to do a Cloudflare API request to purge it from cache.

      Resources

            sdeshmuk Sagar Deshmukh
            nroussos Nikos Roussos
            Nikos Roussos Nikos Roussos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: