Forums

Forums / Developing Portals / seeing this call in our home CMS network request even before login

seeing this call in our home CMS network request even before login

6 posts, 0 answered
  1. Krishna Hari
    Krishna Hari avatar
    68 posts
    Registered:
    05 Dec 2019
    07 Jun 2024
    Link to this post
    PortalConnectorMvc/Services/Identity/Get?_=1717778698196 

    Can we get an idea why this is happening on home page, it takes a long time trying to figure out why that call is there
  2. Rawdon Edghill
    Rawdon Edghill avatar
    86 posts
    Registered:
    16 Dec 2020
    10 Jun 2024
    Link to this post
    Hi Krishna,

    Is the home page failing completely?

    Can you provide any more context? 

    A better explanation of the problem might be helpful. 

    Regards,
    Rawdon
  3. Krishna Hari
    Krishna Hari avatar
    68 posts
    Registered:
    05 Dec 2019
    18 Jun 2024 in reply to Rawdon Edghill
    Link to this post
    Home page is not failing completely, 

    We have recently migrated to CMS on cloud and we have CRM on premise, we have been seeing site getting significantly slower when we have more users on, so we are trying to pin point the calls to see what's going on, from what we see that call gets slower and slower the longer the site goes without rebooting, 

    So the thoughts were
    1. why do we even need this call on home page ? we do have a login pill on there and the cookies for that call has a value loggedIn added to it once we login
    2 .if all the users that have logged in are getting stored in memory and not released or something


  4. Rawdon Edghill
    Rawdon Edghill avatar
    86 posts
    Registered:
    16 Dec 2020
    19 Jun 2024
    Link to this post
    Hi Krishna,

    Can you verify what TPC version and build you are currently on?

    Regards,
    Rawdon
  5. Krishna Hari
    Krishna Hari avatar
    68 posts
    Registered:
    05 Dec 2019
    19 Jun 2024
    Link to this post
    We are on version 6.1.133.150 .

    Also this is the code that seems being injected every page in sitefinity , is there a way to make it not be automatically added 

    (function () {
                        var getIdentity = function () {
                            $.ajax('/PortalConnectorMvc/Services/Identity/Get', {
                                async: false,
                                cache: false,
                                dataType: 'json',
                                method: 'GET',
                            }).done($.proxy(function(data) {
                                tpc.identity = data;
                            }, this));
                            return tpc.identity;
                        }
                        getIdentity();
                    })(window.tpc = window.tpc || {});
  6. Rawdon Edghill
    Rawdon Edghill avatar
    86 posts
    Registered:
    16 Dec 2020
    21 Jun 2024
    Link to this post
    Hi Krishna,

    The TPC get identity service call gets called on every portal page and is not stored in memory for security reasons. However, this call is asynchronous and has minimal impact on performance (the call shouldn’t take more than 500 ms).

    What is your current App service plan?

    What is your SQL DTU?

    How many concurrent users are logged into Portal?

    Regards,
    Rawdon
6 posts, 0 answered