Fix DataLoader Towns cache

This commit is contained in:
slawkens 2025-01-07 15:03:39 +01:00
parent b8396d4c84
commit 99262c3ebd

View File

@ -82,7 +82,9 @@ class DataLoader
self::$startTime = microtime(true);
$cache = Cache::getInstance();
if ($cache->enabled()) {
$cache->delete('towns'); // will be reloaded after next page load
}
global $db;
if ($db->hasTable('towns') && Town::count() > 0) {