Last Updated 4 months ago

Starting automatic import

Our recommended way to set the automatic execution of imports is to add an import link directly to the Task Scheduler (CRON), available in almost every hosting panel. Calling this link (also from a web browser) will start the import or add the import to the queue. To obtain a direct link, go to the module configuration and then, next to the selected file, expand the menu and select the option 'Obtain direct import URL (CRON)'.


Resume an interrupted import

It may happen that the import is interrupted due to an error and the module will not be able to resume it. For this reason it is worth to add one more CRON task that will resume the interrupted import. The link resuming the import looks very similar to the one starting the import, but is not linked to any file.

For example, if the import link looks like this:
http://example.com/modules/pshowimporter/direct_import.php?file1=1-demo2_1_produkty&securekey=501dc0441f5ba785f2bd2db0018e047f
then the link resuming the import will look like this:
http://example.com/modules/pshowimporter/import/action-import.php?securekey=501dc0441f5ba785f2bd2db0018e047f

Such a resume import task can be set e.g. every half hour or every hour.


Preventing shop blocking during import

Importing data into the store causes a large number of queries to be made into the database, which may result in blocking access to the store. Therefore, it is worthwhile to carry out these largest imports at the time of the smallest traffic in the store (e.g. at night).

If a given import has to be performed several times a day, it is worth slowing it down a bit (reduce the number of queries performed during 1s). The import will then take longer, but will be less loaded on the database. In order to slow down the import, in the module configuration, go to the 'Module settings' tab and insert the number of seconds (e.g. 1) in the 'Delay in importing the next object' field, which will cause the module to keep time intervals between each imported object.


Import using SSH

It is possible to import via terminal commands (CLI). Such an import can be minimally faster, but due to system differences, it is often necessary to modify the commands and contact the hosting providers for such an import to work. Therefore, it is recommended to use the import via URL links.

Please Wait!

Please wait... it will take a second!