JOTcache – exclude view that generates price in product listing

  • Posts: 175
  • Thank you received: 3
  • Hikashop Business
9 months 3 weeks ago #284983

-- HikaShop version -- : 3.2.2

Hello,

I know that this question belongs to JotCache support – but they do not reply.
So I really hope you will be able to help me out of this.

Without caching, it takes 3 seconds to generate content of my website, so loading time is absolutely slow (6s+).
Caching is the only option for me.

But I would need to exclude cart, currency switcher module and views that generates prices in listing and in product view.
Check pictures attachments please.





I tried to install JOTcache but I do not understand in what format I should type path to this views.
There is such an example, but I need to exclude only part of view that generates prices.


Please, could you help me what I have to type in this exclusion box to make it work properly?


I will be really thankful,
Thank you,
Filip

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 63530
  • Thank you received: 9152
  • MODERATOR
9 months 2 weeks ago #284996

Hi,

Unfortunately, I don't know how jotcache works so I don't know what should be added there.
With the standard Joomla cache, there are settings in modules to exclude them from caching and we've added some code to HikaShop to clear the cache of Joomla when necessary, but that's about it.

Please Log in or Create an account to join the conversation.

  • Posts: 175
  • Thank you received: 3
  • Hikashop Business
9 months 2 weeks ago #285001

Thank you for your reply, Nicolas.

I am not sure where to find Joomla module exclusion from the cache. But even if I do, it will probably not help me to not cache price as I showed in pictures, right?

Could you tell me what exact view files or controllers must be excluded to avoid caching prices in the product listing, product view and checkout – cart?


Thank you in advance,
Filip

Please Log in or Create an account to join the conversation.

  • Posts: 63530
  • Thank you received: 9152
  • MODERATOR
9 months 2 weeks ago #285002

Hi,

All the views for the products listings, the product pages and the checkout are in components/com_hikashop/views/product and components/com_hikashop/views/checkout and the controllers are in components/com_hikashop/controllers
The best would be to exclude all of HikaShop from the cache though.

Please Log in or Create an account to join the conversation.

  • Posts: 175
  • Thank you received: 3
  • Hikashop Business
9 months 2 weeks ago #285011

Hello,

I know that they are here, but I would need to exclude as many files as possible. Because if I exclude whole view it will make my site much much slower.

Can you advise exact files to exclude?

Thank you,
Filip

Please Log in or Create an account to join the conversation.

  • Posts: 175
  • Thank you received: 3
  • Hikashop Business
9 months 2 weeks ago #285027

Nicolas, please, is there any internal URL for this parts of page?

Like this one



This will help me to solve this.
F.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 63530
  • Thank you received: 9152
  • MODERATOR
9 months 2 weeks ago #285012

Hi,

I don't think that HikaShop is the problem here unless you have millions of products.
And looking at the URL you gave, it seems you have only a few thousands products so HikaShop itself should be lightning fast.
But anyway, if you want to know exactly what view files are used where, just activate the "display view files" setting of the HikaShop configuration and clear your cache once. You'll then see on the frontend which HikaShop view file is used where.

Last Edit: 9 months 2 weeks ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 175
  • Thank you received: 3
  • Hikashop Business
9 months 2 weeks ago #285054

I tried to exclude whole hikashop and tested on tools.pingdom and the generation time was 2.0-3.0 seconds. While on other pages without hikashop, even more complicated pages it was 0.5s. I do not know where to problem is, I will try to figure it out with JotCache support,

thank you,
Nicolas

Please Log in or Create an account to join the conversation.

  • Posts: 22855
  • Thank you received: 3548
  • MODERATOR
9 months 2 weeks ago #285057

Hello,

See : pasteboard.co/H08qQE1.png
Page generation : 310ms

At the end, with the loading of all images, fonts, etc ; the full content has been loaded in 2.46s
But it's really the full page loading, while the Joomla page generation, with the HikaShop product listing, was made in 310ms.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: FilipHradil

Please Log in or Create an account to join the conversation.

Time to create page: 0.105 seconds
Powered by Kunena Forum