mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* stop using global $cache variable, use Singleton pattern instead
This commit is contained in:
@@ -11,6 +11,8 @@ defined('MYAAC') or die('Direct access not allowed!');
|
||||
define('COUNTER_SYNC', 10); // how often counter is synchronized with database (each x site refreshes)
|
||||
|
||||
$views_counter = 1; // default value, must be here!
|
||||
|
||||
$cache = Cache::getInstance();
|
||||
if($cache->enabled())
|
||||
{
|
||||
$value = 0;
|
||||
|
Reference in New Issue
Block a user