« Previous | Next » 

Revision 3ee08ead

ID3ee08ead9085e4547f2626c99adcd3403998af6b
Parent a93db8f0
Child 31fc234d

Added by Christian Müller over 7 years ago

[TASK] Optimize requireOnce in SimpleFileBackend

We go back using a is_file check before trying to require a
cache file. This is the safest way to detect existence and is_file
is still faster than file_exists.

This also prevents errors that happen because a previous exception
in file requires was catched.

Change-Id: Ied1dd72d4d9035a6f7673ceb096cc908c767d80c
Releases: master, 3.0

  • added
  • modified
  • copied
  • renamed
  • deleted