以前、イベントログにて下記の様なエラーがありました。
コード: 全て選択
« MODX Parse Error »
MODX encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error : file_get_contents(/~/assets/cache/process.pageCache.php): failed to open stream: No such file or directory
ErrorType[num] : WARNING[2]
File : /~/manager/includes/document.parser.class.inc.php
Line : 3295
Source : $src = file_get_contents($cache_path);
Basic info
REQUEST_URI : /feed.xml
Referer :
User Agent : Mozilla/4.0 (Windows 98; US) Opera 10.00 [en]
IP : 37.228.106.34
Benchmarks
MySQL : 0.0005 s (0 Requests)
PHP : 0.0179 s
Total : 0.0184 s
Memory : 2.47 MB
Backtrace
1 DocumentParser->executeParser()
index.php on line 149
2 DocumentParser->initProcessCache()
manager/includes/document.parser.class.inc.php on line 203
3 file_get_contents()
manager/includes/document.parser.class.inc.php on line 3295
コード: 全て選択
function initProcessCache()
{
$cache_path = $this->config['base_path'] . 'assets/cache/process.pageCache.php';
if(is_file($cache_path))
{
$src = file_get_contents($cache_path);
$this->processCache = unserialize($src);
}
else $this->processCache = array();
}
PHPリファレンスを調べたところ、http://us2.php.net/manual/ja/function.i ... ャッシュされるらしく、
「clearstatcache()」によってキャッシュをクリアする必要があるようです。
他に回避方法が検討できていないのですが、ご検討をよろしくお願いいたします。