Uploaded image for project: 'Olio'
  1. Olio
  2. OLIO-102

Page caching of home (index) page causes driver operation failures due to contention on static file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • rails-app
    • None

    Description

      With page caching enabled for the home page, homePage, eventDetail and tagSearch operations would frequently fail with timeouts or file not found errors. All 3 of these operations potentially retrieve the home page. The cached home page (index.html) is served by the Web Server (tested with Lighttpd and NginX) but the file is constantly being updated as the cache is invalidated, this allowed a situation to arise where the Web Server would go to serve the file only to find it no longer there. This causes homePage ops to fail and the value of selectedEvent in the driver code to be set an indeterminate value. selectedEvent is used by tagSearch and eventDetail ops. If selectedEvent == null then they also lookup the homepage.

      Because of this issue, by default the "caches_page" statement in events_controller.rb is commented out.

      Attachments

        Activity

          People

            tekgrrl Amanda Waite
            tekgrrl Amanda Waite
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: