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

Increase view cache performance by using include instead of file_get_contents

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 4.2.0
    • Fix Version/s: Future
    • Component/s: Caching
    • Labels:
      None

      Description

      APC and most other php opcode caches are able to cache files if they are php files and included as one.

      This will mean format of cache files will need to change and all cache will need to be cleared.
      Additional benefit is that no unserialize call is needed anymore.

      Note: This should be taken together with larger cache system refactoring.
      For instance classes could be used for cache files to make sure you can use class_exist( <name>, false ) to see if file has already been loaded (nice for compiled templates for instance).

        Issue Links

          Activity

          Hide
          Gaetano Giunta added a comment -

          The drawback is that the amount of shared memory reserved to apc et similar is not as big as the disk buffer cache of the kernel.
          Which means that apc cache is not good to store eg. ezp's template, view and cache-block caches, as those are usually above a few gigs.
          Careful thinking is needed here - maybe using igbinary serialization is a good idea - as well as introducing support for memcache...

          Show
          Gaetano Giunta added a comment - The drawback is that the amount of shared memory reserved to apc et similar is not as big as the disk buffer cache of the kernel. Which means that apc cache is not good to store eg. ezp's template, view and cache-block caches, as those are usually above a few gigs. Careful thinking is needed here - maybe using igbinary serialization is a good idea - as well as introducing support for memcache...
          Hide
          Gaetano Giunta added a comment -

          In reply to comment #023035
          nb: apc (and eaccellerator too) can use filetrs on the names of files/dirs they cache, so my argument is somewhat moot

          Show
          Gaetano Giunta added a comment - In reply to comment #023035 nb: apc (and eaccellerator too) can use filetrs on the names of files/dirs they cache, so my argument is somewhat moot

            People

            • Assignee:
              unknown
              Reporter:
              André R
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: