Skip to content
Snippets Groups Projects
  • JediKev's avatar
    issue: Files - deleteOrphans() · b05dcbda
    JediKev authored
    This addresses the issue where files were being deleted before being sent
    out in Agent responses. This was due to a bug in the query that gets the
    orphaned files. This query was getting files created within the last 24
    hours not after the last 24 hours. The query also had another bug that
    would use the time from PHP instead of MySQL which could cause issues.
    This updates the query as per @greezybacon's suggestions to delete
    orphaned files that were created more than 24 hours ago.
    b05dcbda