• Removed user
    July 21, 2018, 11:05 a.m.

    Hello! There is some trouble with first open the forum page, the loading strip freeze and
    chrome's loading indicator do not stop spinning. When reload page with disabled cashe, situation repeat again.
    The network tab in google's browser dev tools shows that "misago.js"-file (or some times "vendor.js" ) stuck on "receiving" with sign "Caution: request is not finished!" and page render time tends to infinity.
    I think that it's related to nginx or uwsgi configuration files, possible incorrect meanings of "keep-alive" parameter, but i don't know how to fix this.

    project = exampleforum
    uid = exampleforum
    base = /home/%(uid)/site
    chdir = %(base)/%(project)
    home = %(base)/penv
    module = %(project).wsgi:application
    master = true
    processes = 5
    enable-threads = true
    socket = /run/uwsgi/%(project).sock
    chown-socket = %(uid):www-data
    chmod-socket = 660
    vacuum = true
    logto = /var/log/uwsgi/log.log

    user www-data;
    worker_processes auto;
    pid /run/nginx.pid;
    include /etc/nginx/modules-enabled/*.conf;

    events {
    worker_connections 768;
    # multi_accept on;

    http {

    # Basic Settings
    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    # server_tokens off;
    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;
    include /etc/nginx/mime.types;
    default_type application/octet-stream;
    # SSL Settings
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
    ssl_prefer_server_ciphers on;
    # Logging Settings
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;
    # Gzip Settings
    gzip on;
    gzip_static on;
    gzip_disable "msie6";
    # gzip_vary on;
    gzip_proxied any;
    gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
    # Virtual Host Configs
    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;



    PNG, 81.7 KB, uploaded by frothener on July 21, 2018.

  • July 21, 2018, 4:25 p.m.

    Hey there!

    There are two types of JS files in Misago:

    • misago.js and vendor.js come prepacked with Misago. Those files are already minified, but you can speed them up by enabling the gzip on your server as well as sending never-expire headers and setting STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage' in your settings.py.
    • django-i18n.js is not real javascript file. It is Django view that reads language file for active language and generates javascript file for it that contains translation strings and utility functions specific for this language. Depending on your setup it may take a while to generate this file. But this view should also be cached for 24h on the server side, so you you should check if you are running Misago with any server side cache (such as Memcached or Redis) enabled.