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

Defer view cache handling to cron

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • Customer request
    • 4.0.1
    • Caching
    • None

    Description

      On medium to large sites clearing and refreshing view cache on specific actions can take too much time, which results in the user waiting endlessly for the next page to load.

      Therefore, the biggest part of the view cache handling should be deferred to cron.

      For the user who executed the action that requires heavy cache clearing/refreshing, we can follow two approaches:

      • A message can be displayed on each page ("The website is refreshing..." etc.) so he/she knows that the results of his/her actions are not available yet. As soon as the cron job handled the cache refresh we go back to the normal situation. Only for certain nodes we should present him/her immediately with a refreshed cache. For example when the user published a new version of an object the cache of this objects nodes and its parent should be refreshed immediately.
      • Serve this user a user-specific view cache (only for this user) as long as the cron job didn't handle the cache refresh.

      Attachments

        Activity

          People

            unknown unknown
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: