projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e8aafd3
)
HTML/FlexyFramework/Generator.php
author
Alan Knowles
<alan@roojs.com>
Thu, 20 Feb 2014 06:53:53 +0000
(14:53 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 20 Feb 2014 06:53:53 +0000
(14:53 +0800)
HTML/FlexyFramework/Generator.php
patch
|
blob
|
history
diff --git
a/HTML/FlexyFramework/Generator.php
b/HTML/FlexyFramework/Generator.php
index
7a12dd0
..
05f7837
100644
(file)
--- a/
HTML/FlexyFramework/Generator.php
+++ b/
HTML/FlexyFramework/Generator.php
@@
-173,6
+173,9
@@
class HTML_FlexyFramework_Generator extends DB_DataObject_Generator
static function writeCache($iniCacheTmp, $iniCache)
{
static function writeCache($iniCacheTmp, $iniCache)
{
+ $fp = fopen($iniCache.".lock", "r+");
+ flock($fp,LOCK_EX);
+
$ff = HTML_FlexyFramework::get();
$ff->debug('Framework Generator:writeCache ' . $iniCacheTmp . ' ' . $iniCache);
$ff = HTML_FlexyFramework::get();
$ff->debug('Framework Generator:writeCache ' . $iniCacheTmp . ' ' . $iniCache);
@@
-263,6
+266,11
@@
class HTML_FlexyFramework_Generator extends DB_DataObject_Generator
}
rename($iniCacheTmp. '.links.ini', $iniLinksCache);
}
}
rename($iniCacheTmp. '.links.ini', $iniLinksCache);
}
+
+ flock($fp, LOCK_UN);
+ fclose($fp);
+ unlink($fp);
+
}
/* bit like merge recursive, but it avoids doing stuff with arrays.. */
static function mergeIni($new, $old)
}
/* bit like merge recursive, but it avoids doing stuff with arrays.. */
static function mergeIni($new, $old)