Skip to content

Slow Catalog Search

Our catalog search was getting very slow. Upon investigation, we discovered the search_query table had over 600k records… There doesn’t appear to be a cron to clean this up. Truncating the table seems to be one “solution”, but I’m wondering… Read More »Slow Catalog Search

Product images to come without caching

<?php namespace CBCdnImagePlugin; use MagentoCatalogHelperImage; class ProductImageCdn { const CDN_BASE_URL = ‘https://cdn.yourstore.com/media/catalog/product/’; public function afterGetUrl(Image $subject, $result) { // Only modify product image URLs, not CMS/static images if (strpos($result, ‘/catalog/product/’) !== false) { return str_replace(‘/media/catalog/product/’, self::CDN_BASE_URL, $result); } return $result;… Read More »Product images to come without caching