Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
This commit is contained in:
Diederik de Groot
2020-02-18 03:50:23 +01:00
parent 41516a5fc9
commit 0ce2a149fc
2 changed files with 8 additions and 18 deletions

View File

@@ -23,10 +23,10 @@ class fileCache extends resolveCache {
function __destruct() {
if ($this->_isDirty) {
if (!is_writable($this->_cache_file)) {
/*if (!is_writable($this->_cache_file)) {
log_error_and_throw("Could not write to file '".$this->_cache_file."' at Resolver::destruct");
}
if (!file_put_contents($this->_cache_file, serialize($this->cache))) {
}*/
if (!file_put_contents($this->_cache_file, serialize($this->_cache))) {
log_error_and_throw("Could not write to file '".$this->_cache_file."' at Resolver::destruct");
}
}