RSS collects more stories than it is in the config 4 years 1 month ago #1

  • dupa1
  • Localtime: 11:07
  • Europe/Bucharest
  • Posts: 5
RSS Factory FREE 4.1.1
joomla 3.x
HI :)
rss Factory collects more stories than it is in the "Number of stories".
I do not know if it's an error ? but.... after some time I have a lot more stories than i need.
How can I remove older and unnecessary stories, without removing it all.
I would have always kept a selectet number of entries, but not more. :)
The administrator has disabled public write access.

RSS collects more stories than it is in the config 4 years 1 month ago #2

  • Alexandru
  • Alexandru's Avatar
  • Senior Developer
  • Bucharest
  • Localtime: 11:07
  • Europe/Bucharest
  • Posts: 4509
Hello!

The component always retrieves the number of the set stories. But those stories are stored in the cache, adding them to the existing stories from the cache.

One quick tweak would be to clear the cache before the refresh cron job executes. [Joomla dir]\components\com_rssfactory\helpers\refresh.php and add around line ~75, just after:
if ($valid) {

the following:
JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_rssfactory/models');
  $model = JModelLegacy::getInstance('Cache', 'RssFactoryBackendModel');
  $model->clear();
thePHPfactory Customer Support
The administrator has disabled public write access.

RSS collects more stories than it is in the config 4 years 4 weeks ago #3

  • dupa1
  • Localtime: 11:07
  • Europe/Bucharest
  • Posts: 5
HI :)
I need to somehow write in extensions.joomla that the support in thephpfactory is great.
I have not tested what you wrote, for sure works great and as you wrote, but I am looking for something else.

I collect RSS from forums and for example: I have 10 stories in one week
1.aaaa
2.bbbb
....
10.zzzz
in entire week gets stories type: Re Re Re Re, answers on a particular subject, I do not collect this.
RSS channel provides only 5 recent entries and I refresh the list every half hour
in next week there are 2 new stories and stories type: Re Re Re Re....
These new entries entered on the list, example:
1.new1
2.new2
3.aaaa
4.bbbb
....
11.yyyy
12.zzzz
I would like to remove from cache 11 and 12 but not clear the whole cache because all the time there are only stories type: Re Re Re Re who I do not collect. and if I clear the cache before the refresh, the whole time I get 0 stories.

maybe it's a good suggestion for the new version? Maintaining a specific number of latest stories in cache but not more. ;)
The administrator has disabled public write access.

RSS collects more stories than it is in the config 4 years 4 weeks ago #4

  • Alexandru
  • Alexandru's Avatar
  • Senior Developer
  • Bucharest
  • Localtime: 11:07
  • Europe/Bucharest
  • Posts: 4509
Oh, I understand now.

Unfortunately, this is not implemented in the current release and there isn't a quick tweak for it. You'll have to do some coding to achieve this functionality.
thePHPfactory Customer Support
The administrator has disabled public write access.

RSS collects more stories than it is in the config 4 years 4 weeks ago #5

  • dupa1
  • Localtime: 11:07
  • Europe/Bucharest
  • Posts: 5
hehe :) I thought so :) maybe it's a good idea for the next version? just please, in the free version ;)
best wishes, the support in thephpfactory is great.
The administrator has disabled public write access.