xPDOCacheManager.lockFile
Последнее обновление not available | История страницы | Улучшить эту страницу | Сообщить о проблеме
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn morexPDOCacheManager::lockFile¶
Блокирует файл кеша на запись, чтобы параллельные запросы не перезаписали его друг друга. Блокировка используется кеш-провайдерами для атомарности записи.
Синтаксис¶
boolean lockFile (string $file, [array $options = array()])
Пример¶
if ($cacheManager->lockFile($path)) {
// write to the file
$cacheManager->unlockFile($path);
}
Смотрите также¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










