From 0db6ed1798cca4b5ef9e02162ccd41dc91eeee3c Mon Sep 17 00:00:00 2001 From: robflop Date: Sun, 18 Dec 2016 11:44:11 +0100 Subject: [PATCH] Smooth counter updating! No more number jumps of any size. --- includes/get_cache.php | 4 ++++ index.php | 29 +++++++++++++++++------------ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/includes/get_cache.php b/includes/get_cache.php index 3a88bb10..6d7789ad 100644 --- a/includes/get_cache.php +++ b/includes/get_cache.php @@ -13,4 +13,8 @@ $cacheNumber = $cacheCounter->get('yamero_counter'); echo $cacheNumber; } + else { + $cacheNumber = $cacheCounter->get('yamero_counter'); + echo $cacheNumber; +} ?> \ No newline at end of file diff --git a/index.php b/index.php index e1571ecb..afc15c24 100644 --- a/index.php +++ b/index.php @@ -51,20 +51,25 @@