You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
Currently, the preview blurb displayed for each BlogPost on the BlogIndexPage is re-computed every time the page is loaded (since it is an @property attribute on the model). It would be better to memoize this computation and only store it when the BlogPost changes. The easiest way to do this is to add a preview field to BlogPost and use a custom save method to compute and save the preview only when necessary.
The text was updated successfully, but these errors were encountered:
Currently, the preview blurb displayed for each BlogPost on the BlogIndexPage is re-computed every time the page is loaded (since it is an
@property
attribute on the model). It would be better to memoize this computation and only store it when the BlogPost changes. The easiest way to do this is to add apreview
field to BlogPost and use a customsave
method to compute and save the preview only when necessary.The text was updated successfully, but these errors were encountered: