| Thành viên | Nội dung |
mylove

1 bài
| Mình gặp vấn đề như thế này: sau 1 khoảng thời gian mà không có ai truy cập website thì website load rất chậm, sau đó mới hoạt động bình thường. Ai có giải pháp khắc phục xin giúp mình với. Cám ơn
|
chuyendoi050

1 bài
| Mình sử dụng DNN 5.4.4 cũng bị trường hợp như vậy, khi load trang web lên lần đầu rất chậm, lần 2 thì nhanh hơn, nhưng khi mình dùng máy khác truy cập vào thì nó cũng vẫn bị chậm như vậy và lần 2 thì nó cũng nhanh hơn(mình nghĩ rằng không phải IIS biên dịch lần đầu nên chậm, vì mình dùng máy khác truy cập vào lúc này đã biên dịch xong rồi ->nó vẫn bị chậm). Có anh em nào biết cách khắc phục lỗi này thì vui lòng giúp đỡ nha. cảm ơn nhiều!
|
aspnet
 Lập trình không biên giới 445 bài
| Đây không phải là một lỗi, nó là nguyên lý hoạt động của dotnet (aspnet), lần đầu khi chưa có cache, nó phải load trong CSDL, tổng cộng nó có thể lên đến 50 câu query vào DB SQL, nên nó chậm. Các lần sau số câu query vào DB giảm xuống còn 1-10 query nên tốc độ nhanh.
Đồng chí nào (ví dụ các thầy) bảo "lỗi" thì cứ tặng 1 câu : bạn (thày) nên đi học lại nhập môn ASPNET. --- Coding for food http://yenbai.awas.vn http://tknd.vn http://coder.awas.vn http://awas.vn http://bieuquyet.vn http://webhocsinh.com
|
wave_l8_0065

13 bài
| Bạn có thể hướng dẫn cho mình làm sao để cache trong DNN để giảm thiểu thời gian load trang không? Thanks bạn nhiều
|
dechangcum

3 bài
| bạn thử cài đặt này xem sao nhé: Host Settings Set the "Performance Setting" to "Heavy Caching". Depending upon Hosting resources, set the "Compression Setting" to "Deflate Compression" or "GZip Compression". Depending upon Hosting resources, enable "Whitespace filter" (not of much use, if you have also enabled compression). Disable "Users Online" for Installations on which "Users Online" module is NOT used. Set the "Scheduler Mode" to "Timer Method". "Request Mode" causes the Scheduler to be invoked on every request to a page of your installation. On sites where Logging is NOT mission critical, enable "Event Log Buffer", so that log entries are buffered before being flushed. On sites where the Site files do NOT update frequently, disable "Auto-sync filesystem". Uncheck "Enable Ajax" on portals that are just informative, and do NOT involve management tasks. Admin Settings On DNN 5 portals, unselect "Enable Skin Widgets" if they are not being used to prevent redundant skin file downloads. Log Settings Disable all Logs NOT required on an installation. In particular, Disable "Application Start". Disable "Application End". You might also want to disable others like "Scheduler Started", "Scheduler Event Started" etc. depending upon if they are not much useful to you. However, "Sceduler event Failure" should not be disabled to enable debugging of any scheduler issues. Schedule Settings Disable or customize all Schdules NOT required on an installation. In particular, Configure "DotNetNuke.Services.Scheduling.PurgeScheduleHistory, DOTNETNUKE" to run every 5 days (or whatever fits best to your portal depending upon how much Schedule Log your portal generates). Configure "DotNetNuke.Services.Search.SearchEngineScheduler, DOTNETNUKE" to run every 5 days and retry after 1 day (again depending upon what fits best to your portal. There is no one size fits all approach here).
|
thinhkq

5 bài
| Cache có nhiều cách cache lắm. Cache trên máy chủ, cache code, cache trên IIS và cache trong pỏtal cảu DNN nữa 
|
 |