Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤠增加文章过期时间 #23

Closed
wants to merge 1 commit into from

Conversation

weekdaycare
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Oct 28, 2024

@weekdaycare is attempting to deploy a commit to the willow-god's projects Team on Vercel.

A member of the Team first needs to authorize it.

@willow-god
Copy link
Owner

我之前是考虑加这个功能的,但是我感觉,如果由于时间卡住可能会导致部分人的作者卡片那里文章数量不够不太好看,所以最后没加,我认为可以实现一下,如果作者第一篇文章的时间都在很久之前,那将这个作者删除,我认为这样是比较合理的,还能保证较好的观感

@weekdaycare
Copy link
Contributor Author

确实在友链不够的情况下会显得文章数量太少,在友链数量比较多的时候,只限制每位作者的文章数最后的json文件会变得庞大,虽然可以在前端控制文章显示的数量,但仍然消耗了多余的带宽。我觉得 article_countexpire_date 共用算是一种比较折中的方案。

@willow-god
Copy link
Owner

确实在友链不够的情况下会显得文章数量太少,在友链数量比较多的时候,只限制每位作者的文章数最后的json文件会变得庞大,虽然可以在前端控制文章显示的数量,但仍然消耗了多余的带宽。我觉得 article_countexpire_date 共用算是一种比较折中的方案。

实在需要限制,我认为只需要在最终数据添加一个限制就可以了,限制数量而不是通过时间判断,我感觉更直观一些,毕竟就算限制时间也不能保证因为友链过多导致的数据量太大的问题。

我回头有时间了写一下整个友链一起删除的方案吧,谢谢您提出的想法!

@weekdaycare weekdaycare deleted the patch-1 branch October 28, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants