Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The fact that delete_expired()
and delete_flushed()
functions call chdir()
, then the all()
method causes lots of errors. Indeed the all()
method also use chdir()
, but the current PHP directory is already the cache directory.
That's why the list of files inside the cache directory is correct and everything seems to be OK, except that several errors are thrown by the chdir()
.
Comment | File | Size | Author |
---|---|---|---|
#1 | filecache-recursive-calls-to-chdir-causes-errors-1778468-1.patch | 2.68 KB | B-Prod |
Comments
Comment #1
B-Prod CreditAttribution: B-Prod commentedThe patch below fixes issue above.
The code inside
delete_expired()
method was also factorized to be reused indelete_flushed()
method.The only change is the < (lower than) operator that is used inside
delete_flushed()
method instead of <= (lower or equal), but it should not have any consequences in this case.Comment #2
B-Prod CreditAttribution: B-Prod commentedSome news about this? The bug is still alive!
Comment #4
ogi CreditAttribution: ogi commented