By Johnny on Tuesday, 01 October 2019
Posted in General Issues
Replies 8
Likes 0
Views 722
Votes 0
I have lots of posts, is it possible to bulk archive everything that is over 6 months old?
Hey there,

If you do not know how to create cronjob in local host, you can manually run the cron URL

http://yourSite.com/?option=com_easyblog&task=cron


Before you do so, you can go to function getAutoAchivingPosts() which is at JoomlaFolder/administrator/components/com_easyblog/models/blogs.php and change the limit to 50 as shown in the screenshot. https://take.ms/e415o

So that everytime you run the cron URL, it will get 50 posts that need to be achieved and achieve it.

Take note that you need to enable Enable Auto Archiving and set Archive Blog Posts Older Than to 6 months. https://take.ms/nexRp
·
Friday, 11 October 2019 11:19
·
0 Likes
·
0 Votes
·
0 Comments
·
You can enable this setting from backend > Easyblog > setting > general > general > Enable Auto Archiving

Then you have to setup cronjob on your server so it can able to automatically archiving those old blog post on the site.
·
Tuesday, 01 October 2019 17:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

You can check it out and enable this setting Enable Auto Archiving which is at Backend > Easyblog > Settings > General > General > Blog Posts Archiving. https://take.ms/2mnGR
·
Tuesday, 01 October 2019 18:19
·
0 Likes
·
0 Votes
·
0 Comments
·
My site is currently localhost XAMPP, can I still do this? I will eventually move to a live server.

Basically I have 500+ posts, most of these are 6 months old. I would like to select all posts that are older than 6 months and archive them.

How can I achieve this?
·
Thursday, 10 October 2019 23:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the explanation Irwin,

Can I increase the limit to 500 instead of 50, or is there a reason for this?
·
Friday, 11 October 2019 16:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am not encourage to set that limit to higher, because we do not know how long it finish the achieve post process when you manually run the cronjob URL on the browser.

Perhaps you can consider to set that limit between 50 - 100.
·
Friday, 11 October 2019 16:46
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems to be working with 50, thanks!

Can I ask, what change does this make it the database? DOes it change the post 'state' column?
·
Friday, 11 October 2019 17:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Can I ask, what change does this make it the database? DOes it change the post 'state' colum

Yes, that is correct.
·
Saturday, 12 October 2019 11:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post