django-wiki / django-nyt

Notification system for Django with batteries included: Email digests, user settings, JSON API
Apache License 2.0
144 stars 47 forks source link

Clear cache #36

Closed benjaoming closed 7 years ago

benjaoming commented 7 years ago

This should fix #34 by always clearing the cache when something is created (or deleted). In this case, the rollback doesn't AFAIK trigger the post_delete signal, but during tests, the post_save signal should be triggered to clear the cache.

It could also prevent other sorts of odd problems!

codecov-io commented 7 years ago

Codecov Report

Merging #36 into master will increase coverage by 0.11%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
+ Coverage      76%   76.11%   +0.11%     
==========================================
  Files          25       25              
  Lines         600      603       +3     
==========================================
+ Hits          456      459       +3     
  Misses        144      144
Impacted Files Coverage Δ
django_nyt/models.py 85.38% <100%> (+0.34%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update de7b9c3...17bcaec. Read the comment docs.