I set up an importer in Feeds using:

a) "upload fetcher"
b) checked the option "Supply path to file or directory directly"
c) checked "private" schema
d) provided the path to a csv file (not a directory)

I need to know, if the importer progress (for example) is at 60% and I update the csv file (e.g. via Cron), if the left 40% will use new data or the old (before the csv file update) data.

So does feeds stores the whole CSV in cache or saves it temporarily? Or does it always parse the origin source I specified in the "private" schema?

BTW: I often need to update the CSV file.

Comments

tterranigma’s picture

Status: Active » Fixed

A quick look in plugins/FeedsFileFetcher.inc reveals that the file is read with file_get_contents which as we read on php.net:

Reads entire file into a string

. So, the file being imported will be imported as it was before you changing it.

twistor’s picture

The CSV parser does not read the whole file into memory. Updating during an import would cause strange behavior.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.