Skip to content

Invalid Data

General Discussion
3 2 1.1k 1

Suggested Topics


  • Data not updated when back by back button of browser

    General Discussion
    1
    1 Votes
    1 Posts
    537 Views
    V
    Hi guys, I act upvoting a post on the home page, then go to another page, and then go back by pressing the back button of my browser. Maybe the browser caches data. The post that I upvoted before did not change, and when I checked the data, it was still old data. Only reloading the page will update the data. Is there any way to fix this? I try to use pageshow event to update post list but not working $(window).off('pageshow').on('pageshow', async function (event) { if ((event.persisted || (performance.getEntriesByType("navigation")[0]?.type === "back_forward"))) { const params = utils.params(); const query = { page : 1, ...params, _t: new Date().getTime() } await api.get('/search/keyword' , query, function (err, data) { if(err) return; app.parseAndTranslate('partials/posts_list', { posts: data?.posts }, function (html) { $('.topics-list').html(html); }); }) } });
  • the views data's error

    General Discussion
    5
    0 Votes
    5 Posts
    2k Views
    <baris>B
    The view count only goes up once per hour per session https://github.com/NodeBB/NodeBB/blob/master/src/controllers/topics.js#L165
  • Problem about global data transfer

    General Discussion
    5
    0 Votes
    5 Posts
    2k Views
    Ann LilyA
    @bgdztft said in Problem about global data transfer: Thanks, I have solved this question by myself. Thanks, Finally I found a great post with interesting topic.
  • 0 Votes
    1 Posts
    2k Views
    TzA-0x000000001T
    Hello. I know this was asked so much times on the forum, but I've actually a problem since I use the NodeJS build from Openshift. I saw everywhere that I had to change the nginx configuration file, but I don't how to achieve that with my current configuration. I tried to install nginx, but it failed to resolve the issue. So, I was thinking that someone found a fix or a way to edit nginx configuration with Openshift. Thank you for your attention, Best regards.
  • Transfer data from Redis to MongoDB

    General Discussion
    3
    0 Votes
    3 Posts
    2k Views
    Hưng Thành NguyễnH
    @julian I've just inform the users and reinstall it on mongoDB my VPS has only 1GB RAM.

Looks like your connection to NodeBB Community was lost, please wait while we try to reconnect.