[Skip to main content](#vessel-content)

#   Cache functions in Hikashop

##

- **[jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")**
- [![jdouglas's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38148-jdouglas "View jdouglas's Profile") Topic Author
- [ Offline](/forum/user/38148-jdouglas)

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 3 months ago [\#209792](#209792) by [jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")  *[Cache functions in Hikashop](/forum/31-development/878424-cache-functions-in-hikashop#209792 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 3.54 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Website broken. 500 internal error  I can't find documentation on some Hikashop functions. Could someone explain what the following functions does or point me to the place where I can see the documentation on all Hikashop class functions? Thanks.  loadShippingCache() setShippingCache()")* was created by *[jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.1
-- PHP version -- : 3.54
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Website broken. 500 internal error

I can't find documentation on some Hikashop functions.
Could someone explain what the following functions does or point me to the place where I can see the documentation on all Hikashop class functions?
Thanks.

loadShippingCache()
setShippingCache()

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3ODQyNC1jYWNoZS1mdW5jdGlvbnMtaW4taGlrYXNob3A/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

11 years 3 months ago [\#209801](#209801) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cache functions in Hikashop](/forum/31-development/878424-cache-functions-in-hikashop#209801 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 3.54 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Website broken. 500 internal error  I can't find documentation on some Hikashop functions. Could someone explain what the following functions does or point me to the place where I can see the documentation on all Hikashop class functions? Thanks.  loadShippingCache() setShippingCache()")*

Hi,

There is no documentation on all HikaShop class functions.
These functions will cache the shipping methods calculated by shipping plugins on the checkout.
That will avoid the need for plugins to constantly call their corresponding web services in order to get the shipping rates even though nothing changed in the cart, user address, etc. That way, the shipping plugins will only call the web service of their shipping company when necessary.

The following user(s) said Thank You: [prettysitepublishing](/forum/user/6859-prettysitepublishing "View prettysitepublishing's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3ODQyNC1jYWNoZS1mdW5jdGlvbnMtaW4taGlrYXNob3A/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")**
- [![jdouglas's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38148-jdouglas "View jdouglas's Profile") Topic Author
- [ Offline](/forum/user/38148-jdouglas)

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 3 months ago [\#209914](#209914) by [jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")  Replied by *[jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")* on topic *[Cache functions in Hikashop](/forum/31-development/878424-cache-functions-in-hikashop#209914 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 3.54 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Website broken. 500 internal error  I can't find documentation on some Hikashop functions. Could someone explain what the following functions does or point me to the place where I can see the documentation on all Hikashop class functions? Thanks.  loadShippingCache() setShippingCache()")*

Ohh kool. Thank you so much. That's really helpful. So if the shopping cart is updated, the setShippingCache() function is flushed or something?
And the loadShippingCache will return false?
Would I need to do a check to see if the cart is updated and then 'flush' the cache or flushing is already done every time the cart is updated?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3ODQyNC1jYWNoZS1mdW5jdGlvbnMtaW4taGlrYXNob3A/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#209915](#209915) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cache functions in Hikashop](/forum/31-development/878424-cache-functions-in-hikashop#209915 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 3.54 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Website broken. 500 internal error  I can't find documentation on some Hikashop functions. Could someone explain what the following functions does or point me to the place where I can see the documentation on all Hikashop class functions? Thanks.  loadShippingCache() setShippingCache()")*

Hi,

These functions are internal to the shipping plugin allowing us to store the shipping data and not performing webservice calls for each pages.
These functions are just for the shipping plugins and just cache that data ; nothing else, nothing more.
And all is automatic and for sure, if the cart changed, the shipping cache is invalidated so the shipping plugins will re-call the webservices with the new cart.

Regards,

---

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

The following user(s) said Thank You: [prettysitepublishing](/forum/user/6859-prettysitepublishing "View prettysitepublishing's Profile"), [jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3ODQyNC1jYWNoZS1mdW5jdGlvbnMtaW4taGlrYXNob3A/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
