zoukankan      html  css  js  c++  java
  • Laravel Artisan Tinker: The optimize Command

    Laravel Artisan Tinker: The optimize Command

    December 7, 2016  Laravel

    The optimize command optimizes various aspects to improve the performance of the Laravel application. The command provides two flags. The --force flag can be set to indicate that the compiled class file should be written (by default the compiled class is not written when the application is in debug mode). The --psr flag can be set to indicate that Composer should not create an optimized class map loader (class maps are generally better for performance reasons).

    The compiled files cache will be written to the bootstrap/cache/compiled.php cache file. The files that are compiled and written to the cache any files that meet the following criteria:

    • Any files specified in the compile.files configuration entry;
    • Any files that are specified by any service providers listed in the compile.providersconfiguration entry;
    • Any framework files listed in the src/Illuminate/Foundation/Console/Optimize/config.php file.

    The following examples demonstrate how to use the optimize command:

    # Generate a compiled class file with default options.
    optimize
    
    # Generate a compiled class file without optimizing the Composer
    # autoload file.
    optimize --psr
    
    # Generate a compiled class file on a development or debug machine.
    optimize --force
    
     

    This command performs the same action as the php artisan optimize command.

  • 相关阅读:
    How Many Answers Are Wrong(带权并查集)
    Dice
    Plants vs. Zombies(二分好题+思维)
    Marriage Match IV(最短路+网络流)
    Treasure Hunt
    The Doors(几何+最短路,好题)
    90. Subsets II
    89. Gray Code
    88. Merge Sorted Array
    87. Scramble String
  • 原文地址:https://www.cnblogs.com/mouseleo/p/10824756.html
Copyright © 2011-2022 走看看