Warning: session_start(): open(/var/lib/php/sessions/sess_e7olvugp4q6i4iu6d5ej798ifa, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static ExpiringMap2 mechList_raw_cache = new ExpiringMap2(10000).setMap(ciMap());
static Lock mechList_raw_lock = lock();
// timeout for loading
static int mechList_raw_timeout = 60000;
static S mechList_raw(S name) ctex {
lock mechList_raw_lock;
if (empty(name)) ret "";
// get from cache
S src = mechList_raw_cache.get(name);
if (src != null) ret src;
// load & put in cache - TODO: make postPage honor this
//temp tempSetThreadLocal(loadPage_forcedTimeout_byThread, mechList_raw_timeout);
src = mechList_raw_fresh(name);
if (src != null)
mechList_raw_cache.put(name, src);
ret src;
}
svoid _onLoad_mechList_raw {
ownResource(vmBus_onMessage mechChange(
listName -> mechList_raw_cache.remove((S) listName));
}