Update lib/Cake/Cache/Engine/FileEngine.php #903

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@busyfree

may be i found a open mode bug when open cache file ,for fixed the Warning: SplFileInfo::openFile problem.

@busyfree busyfree Update lib/Cake/Cache/Engine/FileEngine.php
may be i found a open mode bug when open cache file ,for fixed the Warning: SplFileInfo::openFile problem.
a00ce6e
@AD7six
Member
AD7six commented Oct 15, 2012

What Warning: SplFileInfo::openFile problem are you trying to fix (ticket number?) ?

@busyfree

Warning (512): SplFileInfo::openFile(H:\app\tmp\cache\persistent\snail_cake_core_cake_dev_zh-cn) [splfileinfo.openfile]: failed to open stream: No error [CORE\Cake\Cache\Engine\FileEngine.php, line 313]

@AD7six
Member
AD7six commented Oct 15, 2012

How or when does one experience this problem? It seems quite likely that you have a race-condition problem (common if you have e.g. missing css/js files and are therefore generating many requests to the server in parallel) - which is not something that requires changing the cache class to fix.

@busyfree busyfree closed this Oct 15, 2012
@markstory
Member

This change also doesn't create the files anymore, so it looks like it will break things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment