Skip to content

Fix last update & archive logic#4422

Merged
Alkarex merged 3 commits intoFreshRSS:edgefrom
Alkarex:fix-last-update
Jun 25, 2022
Merged

Fix last update & archive logic#4422
Alkarex merged 3 commits intoFreshRSS:edgefrom
Alkarex:fix-last-update

Conversation

@Alkarex
Copy link
Member

@Alkarex Alkarex commented Jun 19, 2022

#fix #4401

@Alkarex Alkarex merged commit 07a5213 into FreshRSS:edge Jun 25, 2022
@Alkarex Alkarex deleted the fix-last-update branch June 25, 2022 09:11
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Aug 3, 2023
Improvement of FreshRSS#4422

The main problem was due to `touch()` not automatically clearing the file status cache, and requiring a call to `clearstatcache()`. Example:

```
php > touch('/tmp/touch.txt');
php > echo date('c', filemtime('/tmp/touch.txt'));
2023-08-03T17:27:43+02:00
php > touch('/tmp/touch.txt');
php > echo date('c', filemtime('/tmp/touch.txt'));
2023-08-03T17:27:43+02:00
php > clearstatcache(true, '/tmp/touch.txt');
php > echo date('c', filemtime('/tmp/touch.txt'));
2023-08-03T17:28:21+02:00
```
@Alkarex Alkarex mentioned this pull request Aug 3, 2023
Alkarex added a commit that referenced this pull request Aug 3, 2023
Improvement of #4422

The main problem was due to `touch()` not automatically clearing the file status cache, and requiring a call to `clearstatcache()`. Example:

```
php > touch('/tmp/touch.txt');
php > echo date('c', filemtime('/tmp/touch.txt'));
2023-08-03T17:27:43+02:00
php > touch('/tmp/touch.txt');
php > echo date('c', filemtime('/tmp/touch.txt'));
2023-08-03T17:27:43+02:00
php > clearstatcache(true, '/tmp/touch.txt');
php > echo date('c', filemtime('/tmp/touch.txt'));
2023-08-03T17:28:21+02:00
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Old podcasts episodes appear after release of a new podcast

1 participant