Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17386

Reducing use of file_exists II

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.1.4, 4.2.0, 4.3.0, 4.4.0
    • Caching
    • None

    Description

      Each time eZ Publish is called to load a page, run a cronjob etc, the code checks whether modules folder exists or not in extension.

      This is done in lib/ezutils/classes/ezmodule.php in eZModule::activeModuleRepositories(). Module's views don't change every day. This is why we can create a cache file which will remove a great number of call to file_exists.

      The attached file creates a cache file in eZSys::cacheDirectory() which will reload itself every 6 hours.

      It would be interesting to add to setup/cache view in the admin siteaccess the possibility to flush this cache file.

      Attachments

        Activity

          People

            Unassigned Unassigned
            8bc12bd8-4b86-4b97-8f96-13978c04c7fa@accounts.ibexa.co Jérémy Poulain
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: