e107_handlers/cache_handler.php
Consider simplifying this complex logical expression. Open
Open
if(($ForceCache != false ) || ($syscache == false && $this->UserCacheActive) || ($syscache == true && $this->SystemCacheActive) && !e107::getParser()->checkHighlighting())
{
$cache_file = (isset($this) && $this instanceof ecache ? $this->cache_fname($CacheTag, $syscache) : self::cache_fname($CacheTag, $syscache));
@file_put_contents($cache_file, ($bRaw? $Data : self::CACHE_PREFIX.$Data) );
@chmod($cache_file, 0755); //Cache should not be world-writeable
Consider simplifying this complex logical expression. Open
Open
if(($ForcedCheck != false ) || ($syscache == false && $this->UserCacheActive) || ($syscache == true && $this->SystemCacheActive) && !e107::getParser()->checkHighlighting())
{
$cache_file = (isset($this) && $this instanceof ecache ? $this->cache_fname($CacheTag, $syscache) : self::cache_fname($CacheTag, $syscache));
if(file_exists($cache_file))
Returning type false
but retrieve()
is declared to return string
Open
Open
return false;
- Exclude checks
Returning type false
but retrieve()
is declared to return string
Open
Open
return false;
- Exclude checks
Returning type false
but retrieve()
is declared to return string
Open
Open
return false;
- Exclude checks
Default value for bool
$bRaw
can't be int
Open
Open
function set_sys($CacheTag, $Data, $ForceCache = false, $bRaw=0)
- Exclude checks
Suspicious type bool|false
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
e107::getEvent()->triggerAdminEvent('cache_clear', "cachetag=$CacheTag&file=$file&syscache=$syscache");
- Exclude checks
Default value for bool
$bRaw
can't be int
Open
Open
public function set($CacheTag, $Data, $ForceCache = false, $bRaw=0, $syscache = false)
- Exclude checks