Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
07e5b30b
Unverified
Commit
07e5b30b
authored
6 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
remove unneeded is_dir from file cache gc
Signed-off-by:
Robin Appelman
<
robin@icewind.nl
>
parent
fd4a7bf7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/Cache/File.php
+1
-1
1 addition, 1 deletion
lib/private/Cache/File.php
with
1 addition
and
1 deletion
lib/private/Cache/File.php
+
1
−
1
View file @
07e5b30b
...
@@ -174,7 +174,7 @@ class File implements ICache {
...
@@ -174,7 +174,7 @@ class File implements ICache {
*/
*/
public
function
gc
()
{
public
function
gc
()
{
$storage
=
$this
->
getStorage
();
$storage
=
$this
->
getStorage
();
if
(
$storage
and
$storage
->
is_dir
(
'/'
)
)
{
if
(
$storage
)
{
// extra hour safety, in case of stray part chunks that take longer to write,
// extra hour safety, in case of stray part chunks that take longer to write,
// because touch() is only called after the chunk was finished
// because touch() is only called after the chunk was finished
$now
=
time
()
-
3600
;
$now
=
time
()
-
3600
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment