Open kancolle0428 opened 7 years ago
The number of toots is shown by an instance variable @instance_presenter
as follows:
https://github.com/kancolle0428/mastodon/blob/master/app/views/about/more.html.haml#L34
On the other hand, the variable is set by about_controller
.
Finally, the InstancePresenter
class is defined in https://github.com/kancolle0428/mastodon/blob/master/app/presenters/instance_presenter.rb
The main logic of status counter is in these lines:
def status_count
Rails.cache.fetch('local_status_count') { Status.local.count }
end
You might see the count twice in a short time, or cache structure might be broken (sounds rare because some values are shown, so far).
さっき試しにデプロイしたら数値が更新された。しかし相変わらずリアルタイムでカウントが増えていかないので、 サーバー側でキャッシュして更新されないようになっているのかも??
It seems like cache hasn't been expired while the settings for it had been written inconfig/initializers/redis.rb
.
Failing to configure redis?
本来のキャッシュ保持は10分なんだけどなあ。。redisの設定ミスってるとかだとしたらお手上げですね
https://kancolle-yokosuka.xyz/about/more