![](/img/trans.png)
[英]Is it possible to seed users into the DB with the Clearance gem?
[英]Clearance gem queries for users too many times
我正在使用清除gem進行身份驗證,並且效果很好。 但是,我發現的問題是,它會使應用程序變慢。 通過仔細研究,我發現它為頁面請求的每個資產(JavaScript,CSS和圖像)獲取用戶。
誰能建議我解決這個問題的辦法?
提前致謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.