diff options
author | Andreas Gohr <andi@splitbrain.org> | 2020-03-04 15:09:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 15:09:04 +0100 |
commit | ef2fb1a85c73cc857316bf72861ae864d73f2ded (patch) | |
tree | e53fbe202e12a81539239c5ea6a8f52f22f448f5 /inc/Cache/Cache.php | |
parent | 593051682619fec2ff67b505a2b4de21a78484e8 (diff) | |
parent | 30ee8867047f1794cf44ed1a72ea3d5bda3cd9f8 (diff) | |
download | dokuwiki-ef2fb1a85c73cc857316bf72861ae864d73f2ded.tar.gz dokuwiki-ef2fb1a85c73cc857316bf72861ae864d73f2ded.zip |
Merge pull request #2992 from kalenpw/master
Consistent capilization of io_saveFile and psr-2 formatting
Diffstat (limited to 'inc/Cache/Cache.php')
-rw-r--r-- | inc/Cache/Cache.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/inc/Cache/Cache.php b/inc/Cache/Cache.php index ab64da5cb..af82e6bf6 100644 --- a/inc/Cache/Cache.php +++ b/inc/Cache/Cache.php @@ -78,9 +78,13 @@ class Cache $this->depends = $depends; $this->addDependencies(); - if ($this->_event) { - return $this->stats(Event::createAndTrigger( - $this->_event, $this, array($this, 'makeDefaultCacheDecision')) + if ($this->getEvent()) { + return $this->stats( + Event::createAndTrigger( + $this->getEvent(), + $this, + array($this, 'makeDefaultCacheDecision') + ) ); } @@ -105,7 +109,6 @@ class Cache */ public function makeDefaultCacheDecision() { - if ($this->_nocache) { return false; } // caching turned off @@ -170,7 +173,7 @@ class Cache return false; } - return io_savefile($this->cache, $data); + return io_saveFile($this->cache, $data); } /** |