Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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.