Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.
This repository was archived by the owner on May 3, 2021. It is now read-only.

Large local import #177

@roblandry

Description

@roblandry

Ive been trying to import tons of photos for days. I came to the conclusion that it is related to the max execution time of php. As a workaround, for large intitial imports, i would recommend adding a way to give unlimited execution time with a LARGE disclaimer. I edited /php/Modules/Import.php and added this after:

https://github.com/LycheeOrg/Lychee/blob/760ec6008a6f85cf666245a8bdcb3d39ba96c394/php/Modules/Import.php#L3

set_time_limit(0);

This allows the script to run until finished or until max memory reached. As i said, it is a bad thing to have this, however, i was only importing about 50 photos or so at a time, and i have thousands.

Might be worth adding a unlimited execution time variable, and testing if true to enable the unlimited time limit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions