Too Many Update Calls

I just updated from 4.16 to 4.18 and everything seems to have gone smoothly. However, I have noticed that there are update calls every time I go to admin index or add ons page. The calls are made to cs-cart update and to each of my cart power add ons. It’s annoying because it is slowing down the loading of the page waiting for the calls to complete. Is anyone else noticing this or it isolated to just me?

Hello, thetool!

We apologize for a delay with our reply.

Please contact us in HelpDesk topic or on sales@cart-power.com so we can investigate the issue.

Best regards,
Cart-Power

Hello @cart-power,

I think this is more of a CSC issue. I can’t remember which one (it’s been a few days :wink:) but I produced it on the demo or a fresh install.

I didn’t post it in the bug section because it’s just more of an annoyance than a bug.

Thanks

1 Like

Could you please provide some additional details? Unfortunately the described issue in not clear enough for me.

Everytime I select the “Home” or “Downloaded add-ons”, updates are being checked.

Thank you fore the clarification.

By default, the results of these requests are stored in the cache, so these requests shouldn’t occur every time you visit this page unless the cache is cleared.

If in your store it behaves differently, please contact us via Help Desk on this case.

It’s not just my store. It does the same on the demo.

On the screenshot from the demo I see requests to updates.cs-cart.com server. These are the requests that check the available updates for the CS-Cart core, not add-ons. And these request are being called from different scenario.

Exactly. So why are they checking every time you select “Home” or “Downloaded add ons”?

I have been able to reproduce this problem and have passed on the details to the developers.

Thanks!

1 Like

Hello @CS-Cart_team,

Any idea when this will be resolved?

Thanks

Hi!

Sorry, no news on this case. You can try to replace this one code:

        $response = Registry::getOrSetCache(
            [self::CACHE_TAG, $cache_key],
            $cache_conditions,
            ['lang', 'time'],
            function () use ($method_name, $method_type, $data) {
                return $this->request($this->url . $method_name, $method_type, $data);
            }
        );

with this one:

        $response = Registry::getOrSetCache(
            [self::CACHE_TAG, $cache_key],
            $cache_conditions,
            ['lang', 'time'],
            function () use ($method_name, $method_type, $data) {
                return $this->request($this->url . $method_name, $method_type, $data);
            },
            false
        );

in the app/Tygh/Marketplace/Client.php file. I haven’t tested it, but when I passed the information about this issue to the developers, I mentioned it as a possible solution. Unfortunately I don’t remember the details, but I hope I suggested the right solution at the time.

Doesn’t seem to make a difference. :frowning:

Could you please let me know the exact steps you have taken to reproduce this issue? Does it relate to the requests made to marketplace.cs-cart.com, updates.cs-cart.com or anything else?

Again? You said you reproduced it. There are no steps. Anytime you visit ?dispatch=index.index or ?dispatch=addons.manage it is checking marketplace.cs-cart.com , updates.cs-cart.com and any other 3rd party add ons.

Again, it’s reproduceable on the demo.