mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
OK so that was that
This commit is contained in:
parent
ccc91a473c
commit
f7f46bae00
@ -1236,8 +1236,8 @@ function clearCache()
|
||||
}
|
||||
}
|
||||
|
||||
$tmp = '';
|
||||
foreach ($keysToClear as $item) {
|
||||
$tmp = '';
|
||||
if ($cache->fetch($item, $tmp)) {
|
||||
$cache->delete($item);
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ class OTS_DB_MySQL extends OTS_Base_DB
|
||||
}
|
||||
|
||||
global $config;
|
||||
if(class_exists('MyAAC\Cache\Cache') && ($cache = Cache::getInstance()) && $cache->enabled()) {
|
||||
if(class_exists('Cache') && ($cache = Cache::getInstance()) && $cache->enabled()) {
|
||||
$tmp = null;
|
||||
$need_revalidation = true;
|
||||
if($cache->fetch('database_checksum', $tmp) && $tmp) {
|
||||
@ -147,7 +147,7 @@ class OTS_DB_MySQL extends OTS_Base_DB
|
||||
{
|
||||
global $config;
|
||||
|
||||
if(class_exists('MyAAC\Cache\Cache') && ($cache = Cache::getInstance()) && $cache->enabled()) {
|
||||
if(class_exists('Cache') && ($cache = Cache::getInstance()) && $cache->enabled()) {
|
||||
$cache->set('database_tables', serialize($this->has_table_cache), 3600);
|
||||
$cache->set('database_columns', serialize($this->has_column_cache), 3600);
|
||||
$cache->set('database_checksum', serialize(sha1($config['database_host'] . '.' . $config['database_name'])), 3600);
|
||||
|
Loading…
x
Reference in New Issue
Block a user