Submitted by wilkins on Sat, 2015-08-29 09:04 in Price Tapestry
Hi David
Is it possible to remove the feed after it has been imported, I am using the latest version and the automation tool and a cron. I have no need for the feeds and they just take up space.
Now, the only side effect of doing this is that the /admin/ home page will show the De-Register link alongside all feeds, as it is the presence of the feed that enables the admin tools for each feed such as Filters etc.. One way around this would be to put an empty file in place of the actual feed, so to do this add the following line to the above replacement:
Hello Brent,
Sure, you can have cron.php delete each feed after import - look for the following code at line 93:
import();
...and REPLACE with:
import();
unlink($config_feedDirectory.$feed["filename"]);
Now, the only side effect of doing this is that the /admin/ home page will show the De-Register link alongside all feeds, as it is the presence of the feed that enables the admin tools for each feed such as Filters etc.. One way around this would be to put an empty file in place of the actual feed, so to do this add the following line to the above replacement:
fclose(fopen($config_feedDirectory.$feed["filename"],"w"));
Hope this helps!
Cheers,
David.
--
PriceTapestry.com