« Previous | Next » 

Revision e36bb1ab

IDe36bb1ab91884cabefe908fb7a0c3d86e7f04ef4
Parent 0e47b609
Child 6287fb54

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 caught.

Change-Id: Ied1dd72d4d9035a6f7673ceb096cc908c767d80c
Releases: master, 3.0

  • added
  • modified
  • copied
  • renamed
  • deleted