BxDolCronStorage.php 671 B

123456789101112131415161718192021222324252627282930
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaCore UNA Core
  7. * @{
  8. */
  9. class BxDolCronStorage extends BxDolCron
  10. {
  11. public function processing()
  12. {
  13. set_time_limit(36000);
  14. ignore_user_abort();
  15. /**
  16. * if any files were deleted, try to uninstall modules pending for uninstall
  17. */
  18. if (BxDolStorage::pruneDeletions())
  19. BxDolInstallerUtils::checkModulesPendingUninstall();
  20. /**
  21. * delete outdated ghosts
  22. */
  23. BxDolStorage::pruneGhosts();
  24. }
  25. }
  26. /** @} */