collective / collective.polls

A content type, workflow, and portlet for conducting online polls, for anonymous and logged-in users
11 stars 12 forks source link

Poll updating is causing 503 errors on sites with high traffic #117

Closed hvelarde closed 6 years ago

hvelarde commented 7 years ago

The @@update-poll used to update the poll results is currently defined as not cacheable and may need to be optimized as it is causing a lot of 503 errors on sites high high volume of traffic and a voting portlet enabled.

a workaround is to include something like the following on the font end web server (in this case, nginx):

location / {
    ...
    if ($request_uri ~ @@update-poll) {
        expires 1m;
    }
    ...
}