mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
Fix DataLoader Towns cache
This commit is contained in:
parent
b8396d4c84
commit
99262c3ebd
@ -82,7 +82,9 @@ class DataLoader
|
|||||||
self::$startTime = microtime(true);
|
self::$startTime = microtime(true);
|
||||||
|
|
||||||
$cache = Cache::getInstance();
|
$cache = Cache::getInstance();
|
||||||
$cache->delete('towns'); // will be reloaded after next page load
|
if ($cache->enabled()) {
|
||||||
|
$cache->delete('towns'); // will be reloaded after next page load
|
||||||
|
}
|
||||||
|
|
||||||
global $db;
|
global $db;
|
||||||
if ($db->hasTable('towns') && Town::count() > 0) {
|
if ($db->hasTable('towns') && Town::count() > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user