Commit graph

7 commits

Author SHA1 Message Date
Bob Van Landuyt
3dd2476eb3 Refresh the markdown cache if it was nil
If the cached html_field for a markdown_field is `nil` while the
mfarkdown_field is not, it needs to be refreshed.
2017-05-02 15:24:41 +02:00
Nick Thomas
0e24b1280e Fix a failing spec 2017-04-25 17:13:44 +01:00
Nick Thomas
d2b883b750 Start versioning cached markdown fields 2017-04-21 17:24:33 +01:00
Nick Thomas
e9819de10a Remove the ClearDatabaseCacheWorker 2017-04-21 11:52:28 +01:00
Douwe Maan
02494f7ce8 Fix specs 2017-02-23 09:31:57 -06:00
Ebrahim Byagowi
7e3ff18523 Add RTL support to markdown renderer 2016-10-16 17:47:48 +03:30
Nick Thomas
e94cd6fdfe Add markdown cache columns to the database, but don't use them yet
This commit adds a number of _html columns and, with the exception of Note,
starts updating them whenever the content of their partner fields changes.

Note has a collision with the note_html attr_accessor; that will be fixed later

A background worker for clearing these cache columns is also introduced - use
`rake cache:clear` to set it off. You can clear the database or Redis caches
separately by running `rake cache:clear:db` or `rake cache:clear:redis`,
respectively.
2016-10-07 02:54:25 +01:00