diff --git a/config-default.php b/config-default.php index 235419d..a527d31 100644 --- a/config-default.php +++ b/config-default.php @@ -9,6 +9,7 @@ error_reporting(E_ALL); define('BASE_URL', 'https://kvazar.today'); define('PAGE_LIMIT', 10); define('SEF_MODE', true); +define('CACHE_ENABLED', false); // Database define('DB_HOST', 'localhost'); diff --git a/public/image.php b/public/image.php index 259803b..2f0bf78 100755 --- a/public/image.php +++ b/public/image.php @@ -1,19 +1,29 @@ generateImageResource(md5($_GET['hash']), 60, 60, false)); + } + + echo file_get_contents($filename); + + } else { $icon = new Icon(); - file_put_contents($filename, $icon->generateImageResource(md5($_GET['hash']), 60, 60, false)); + echo $icon->generateImageResource(md5($_GET['hash']), 60, 60, false); } - - echo file_get_contents($filename); }