• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

How do Product Image Paths work? Strange thing happening

General Discussion
2
2
396
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    bagdev last edited by 7 Nov 2020, 09:07

    Hi All,

    If I dump the getProductBaseImage() method, I get a URL structure like so:

    http://myshop7.custom.test/cache/small/product/1243/4CXU8XSsrjmvSv08Kpjbwn1IPm3h9fLFQu0kU0AE.png

    But on my device, that file is actually located at storage\app\public\product\1243\4CXU8XSsrjmvSv08Kpjbwn1IPm3h9fLFQu0kU0AE.png

    Why are these directories different, and why does the 'cache' directory seemingly not exist on my local? However, if I access http://myshop7.custom.test/cache/small/product/1243/4CXU8XSsrjmvSv08Kpjbwn1IPm3h9fLFQu0kU0AE.png - I can view the image.

    1 Reply Last reply Reply Quote 0
    • V
      vishalK last edited by 9 Nov 2020, 14:35

      Hi @bagdev

      Original product image is saved inside storage folder but to make product page loading time fast we use dynamic imagecache technique.
      So by adding cache/small/ in url it load image after transforming image into small template.

      Thanks

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post