Skip to content

Instantly share code, notes, and snippets.

View sashas777's full-sized avatar
🌟
Per Aspera Ad Astra!

Alexander Lukyanov sashas777

🌟
Per Aspera Ad Astra!
View GitHub Profile
@aleron75
aleron75 / shell_delete_unused_images
Last active August 22, 2024 16:57
Delete no more used Product Images on Magento 1
<?php
require_once 'abstract.php';
class Mage_Shell_CheckImages extends Mage_Shell_Abstract
{
const CATALOG_PRODUCT = '/catalog/product';
const CACHE = '/cache/';
protected function _glob_recursive($pattern, $flags = 0)