Misc/Versions

* AOWOW_REVISION is no longer expected to be numeric
   this allows for user-defined versions (e.g.4.1c) when changes
   within css/js files need to be forced into the web browser or
   existing cache files need to be invalidated
This commit is contained in:
Sarjuuk
2017-09-04 16:45:57 +02:00
parent f2fce0f602
commit ada57d4384

View File

@@ -864,7 +864,7 @@ class GenericPage
$type = $cache['isString'];
$data = $cache['data'];
if ($cache['timestamp'] + CFG_CACHE_DECAY <= time() || $cache['revision'] < AOWOW_REVISION)
if ($cache['timestamp'] + CFG_CACHE_DECAY <= time() || $cache['revision'] != AOWOW_REVISION)
$cache = null;
else
$this->cacheLoaded = [CACHE_MODE_MEMCACHED, $cache['timestamp']];
@@ -887,7 +887,7 @@ class GenericPage
list($time, $rev, $type) = explode(' ', $cache[0]);
if ($time + CFG_CACHE_DECAY <= time() || $rev < AOWOW_REVISION)
if ($time + CFG_CACHE_DECAY <= time() || $rev != AOWOW_REVISION)
$cache = null;
else
{