[Warning] file_put_contents(/sites/easyfreestyle.nl/www/silverstripe-cache/.blogtitlecache): failed to open stream: Permission denied

GET /Security/login?BackURL=%2Fcontact-backup%2F

Line 277 in /sites/easyfreestyle.nl/www/mysite/code/Page.php

Source

268 	}
269 	
270 	// Return latest blog title from drwoe.nl
271 	public function getLatestBlogTitle() {
272 		$cache_file_path = Director::baseFolder() . '/silverstripe-cache/.blogtitlecache';
273 		
274 		// generate cache version 
275 		if(!file_exists($cache_file_path) || filemtime($cache_file_path) < time() - 3600*24) {
276 			$content = file_get_contents('http://drwoe.nl/xml/latest-blog-title');
277 			file_put_contents($cache_file_path, $content);
278 		}
279 		
280 		return file_get_contents($cache_file_path);
281 	}
282 	
283 	// Build LESS and CSS file

Trace

Logo Dr.Woe Hier kun je inloggen :)