mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
[website] [slideshow] clear website cache on update of a slide show
This commit is contained in:
@@ -5,4 +5,9 @@ import webnotes
|
|||||||
|
|
||||||
class DocType:
|
class DocType:
|
||||||
def __init__(self, d, dl):
|
def __init__(self, d, dl):
|
||||||
self.doc, self.doclist = d, dl
|
self.doc, self.doclist = d, dl
|
||||||
|
|
||||||
|
def on_update(self):
|
||||||
|
# a slide show can be in use and any change in it should get reflected
|
||||||
|
from webnotes.webutils import clear_cache
|
||||||
|
clear_cache()
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
{% if slide.heading or slide.description %}
|
{% if slide.heading or slide.description %}
|
||||||
<div class="carousel-caption">
|
<div class="carousel-caption">
|
||||||
{% if slide.heading %}<h4>{{ slide.heading }}</h4>{% endif %}
|
{% if slide.heading %}<h4>{{ slide.heading }}</h4>{% endif %}
|
||||||
{% if slide.heading %}<p>{{ slide.description }}</p>{% endif %}
|
{% if slide.description %}<p>{{ slide.description }}</p>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user