don't use File based cache, use TempStore instead

Created on 12 April 2023, about 1 year ago
Updated 5 June 2024, 20 days ago

Problem/Motivation

This module uses the ankitpokhrel/tus-php which provides a File based cache to store data about the files which are in the process of being uploaded. The main problem is that this caching method using a JSOn file with FILE level locking using PHP's flock() function. The main problem we have is that when running in a production environment with multiple web heads each running their own PHP instance the locking fails. also the README file for ankitpokhrel/tus-php specifically says:

‼️ File based cache is not recommended for production use.

Steps to reproduce

Proposed resolution

create a Drupal specific cache mechanism using Drupal core's TempStore

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jrglasgow Idaho

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024