Skip to content

Move ajax/scan.php to cron job #17906

Closed

Description

@PVince81

Not sure why we are triggering a background scan from the JS side with "ajax/scan.php" ?
This should probably be moved to a cron job instead.

@icewind1991 @LukasReschke @DeepDiver1975 what do you think ?

Activity

  1. DeepDiver1975 commented on Jul 27, 2015

    @DeepDiver1975
    Contributor

    AFAIK back in the days we had no background jobs/cron jobs ......

  2. added this to the milestone on Jul 27, 2015
  3. LukasReschke commented on Jul 27, 2015

    @LukasReschke
    Contributor

    Seconded.

  4. PVince81 commented on Jul 28, 2015

    @PVince81
    ContributorAuthor

    There is already a BackgroundScan cron job, but I'm not sure whether it serves the same purpose or properly covers this, so we need to be careful.

  5. DeepDiver1975 commented on Aug 4, 2015

    @DeepDiver1975
    Contributor

    There is already a BackgroundScan cron job,

    Hmm ... from the anitvirus app afaik - nothing for files afaik ...

  6. PVince81 commented on Aug 4, 2015

    @PVince81
    ContributorAuthor

    Okay, I misunderstood it. Actually the "backgroundScan" method is currently called by ajax/scan.php only: https://github.com/owncloud/core/blob/master/apps/files/ajax/scan.php#L55
    I thought there was a cron job too...

    The background scan seems to be implemented in a way that it only scans a small bunch of files/folders every time, not everything at once. That would also fit a cron job.

  7. changed the title [-]Remove ajax/scan.php[/-] [+]Move ajax/scan.php to cron job[/+] on Aug 4, 2015
  8. PVince81 commented on Aug 4, 2015

    @PVince81
    ContributorAuthor

    I renamed the title: move ajax/scan.php to cron job.

  9. self-assigned this
    on Aug 4, 2015
  10. PVince81 commented on Sep 22, 2015

    @PVince81
    ContributorAuthor

    Moving this enhancement to 9.0.

  11. modified the milestones: , on Sep 22, 2015
  12. LukasReschke commented on Nov 16, 2015

    @LukasReschke
    Contributor

    PR is at #20545

  13. lock commented on Aug 7, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  14. locked as resolved and limited conversation to collaborators on Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions