Projekt

Allgemein

Profil

GX-Bug #67738

Von Moritz Bunjes vor mehr als 3 Jahren aktualisiert

Mit der Unterstützung von Unterordnen für Artikelbilder wurde die .htaccess-Datei angepasst, um die live-Erzeugung von nicht existierenden Bildern eben auch für Unterordner zu unterstützen. Dabei wird zur Erkennung mit der Variablen %{DOCUMENT_ROOT} gearbeitet, die jedoch nicht auf jedem Server (z. B. Strato) den erwarteten Wert zurück liefert, so dass existierende Bilder nicht als solche erkannt Erkannt werden und die erneute Generierung immer ausgelöst wird, was natürlich zu langen Ladezeiten der Bilder führt.  

 --- 

 With the support of subfolders for product images, the .htaccess file has been adapted to support the live generation of non-existing images for subfolders as well. The variable %{DOCUMENT_ROOT} is used for detection, but it does not return the expected value on every server (e.g. Strato), so that existing images are not detected as such and the re-generation is always triggered, which of course leads to long loading times of the images.  

 For testing: 
 Create a product with three images. The first image should be stored without subfolder. The second in a subfolder and the third in a subfolder of the subfolder. Open the product in the frontend and check in the network console, if the images are loaded very fast. Delete the info images on the ftp server and check again, if the images are loaded again, now with a longer loading time because of the recreation.

Zurück