Longterm cache clear via backend not working
Use this simple test script in your QUIQQER root:
<?php
define('QUIQQER_SYSTEM', true);
require_once 'bootstrap.php';
ini_set('display_errors', 1);
error_reporting(E_ALL);
\QUI\Cache\LongTermCache::set('peat_test', 'Pferd');
try {
\QUI\Cache\LongTermCache::get('peat_test');
echo "in cache";
} catch (\Exception $Exception) {
echo "not in cache";
}
- Execute script once (output "in cache")
- Comment out the
LongTermCache::set
- Line - Go to QUIQQER backend and click "Clear longerm cache" in system settings
- Execute script again (output is still "in cache" but expected was "not in cache")