By Hideto on Thursday, 20 December 2018
Posted in General Issues
Replies 8
Likes 0
Views 524
Votes 0
Hello,

I have configured Feed Importer as attached screenshot.
Cronjob is also configured and import is done successfully.

However, there is one issue.

What I want to achieve is to import the latest post and future posts.
But the Feed Importer keeps importing older posts every time cronjob runs, and now our latest blog section is flooded with old posts.

How can I restrict it to only import newer posts?


Thanks,
Rikao
Hey there,

Can you include your site's access and FTP's access so that we can have a better check?

May I know which title of the feeds has this kind of as you mentioned?
·
Thursday, 20 December 2018 11:21
·
0 Likes
·
0 Votes
·
0 Comments
·
May I know which posts do you consider it as older posts? Is it those posts has been imported and it imports again and you consider it as older posts?
·
Thursday, 20 December 2018 11:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Irwin,

By 'older posts', I mean older dated posts.
For example, if the date of the latest post is 2018-Dec-1, the next cronjob imports post of 2018-Nov-1, and the next cronjob imports 2018-Oct-1, and it keep importing older dated posts such as until 2013-XX-XX.

If cronjob does not find newer posts, then don't import.
That's what I expect.

I enclosed the site credentials.
I haven't included FTP. Please test on your end if necessary, and let me know if I need to modify any files.

Thanks,
Rikao
·
Thursday, 20 December 2018 14:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

It is a correct and default behavior.

For an example, if you run this feed import URL [gist type="php"]
https://stackideas.com/blog?format=feed&layout=rss
[/gist] and if you see there are 8 items in it, means that it will import 8 posts.

As long as the post has been imported, it won't be imported for the second time on the next cronjob if it has been imported previously.

For your information, you can set the 'Publishing Status' to unpublished on your Feed Importer's Publishing Details so that the posts will be published automatically and you can choose which posts to be published.

Unfortunately, it is impossible to import the posts for a certain time at this point of currently.
·
Thursday, 20 December 2018 16:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, but I don't quite understand what you mean.

Will you please clarify how it works with the following settings?
- Cron interval: 5 minutes
- Total Items (to fetch each time it imports): 1

The result will be:
- 1st cronjob imports the latest post
- If the 2nd cronjob does not find the newer post, it imports the older dated post.
- It keeps importing older dated post until it finds the new post.

For example, if the blog feed is usually updated once or twice a month, cronjob will keep importing hundreds of older dated posts.

Is it correct behavior?
Is there any way to import only newer posts?

Thanks,
Rikao
·
Thursday, 20 December 2018 17:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, that is correct behaviour as what you mentioned at above.

Currently that is no other way around to import the newer post only.

For example this Feed URL :
[gist type="php"]
https://stackideas.com/blog?format=feed&layout=rss
[/gist]

The system will read through this feeds URL, if there got showing 8 feeds (e.g. http://take.ms/GIalu), so it will import all the feeds into Easyblog regardless those feed published at more than a year ago.

So what my colleague suggested you in earlier is, you can set the 'Publishing Status' to unpublished on your Feed Importer's setting (http://take.ms/Zyfw2), so those feed will not published on your Easyblog site directly, but you have to published those imported post manually.

Once those feed imported into Easyblog before, it will log this into this table `#__easyblog_feeds_history`, so it will not import this feed again into your Easyblog site.
·
Thursday, 20 December 2018 22:58
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post