saberespoder / contenido

Reincornation of Content Platform that is fast, secure and SEO friendly!
0 stars 0 forks source link

Rebuild preguntas section separetely #102

Closed query-string closed 6 years ago

query-string commented 6 years ago

After importing 2.9K questions from the old content platform, despite all my efforts to cache downloaded questions, the entire site rebuild (time between pressing Publish button and changes reflected on the site) started to take ~30 minutes. Initially, we did not expect to have that many pages and such time-out is totally inconceivable.

image

Luckily, preguntas section stays unchanged almost forever which means we could try to perform following steps to speed-up the build:

  1. Temporary don't rebuild preguntas pages at all, use already compiled version
  2. Somehow don't rebuild preguntas section pages right away on articles publishing
  3. Still rebuild preguntas pages from time to time (possibly manually on release merge) to follow site layout changes
  4. Resolve issue #68 to help editors avoid suffering from pages rebuilding at all
query-string commented 6 years ago

Zero step is done and rebuild time returned to normal (up to 5 minutes), 2.9K compiled preguntas stay unchanged between builds.