mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user