Clear PHP stat cache containing the file metadata information during replacement

Created on 11 September 2024, 7 months ago

Problem/Motivation

We have noticed on our automated testing pipeline after updating to D10.3 the asserted file size was incorrect in ExistingSite test suit.
We identified that the file metadata was cached within the same request by php_stat.

Steps to reproduce

Couldn't reproduce on a local environment.

We do the same tests steps as in the module except it is over ExistingSite test suit.

Proposed resolution

Call clearstatcache() before resaving the file entity after the copy method.

Remaining tasks

Look into potential PHP ini configs or environment related differences. We don't know how is this related to the moving from D10.2 to the D10.3 version.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium joevagyok

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024