Selaa lähdekoodia

fix: Clear sitemap cache along with website cache

version-14
Faris Ansari 4 vuotta sitten
vanhempi
commit
5a92195b75
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      frappe/website/render.py

+ 1
- 1
frappe/website/render.py Näytä tiedosto

@@ -309,7 +309,7 @@ def clear_cache(path=None):

:param path: (optional) for the given path'''
for key in ('website_generator_routes', 'website_pages',
'website_full_index'):
'website_full_index', 'sitemap_routes'):
frappe.cache().delete_value(key)

frappe.cache().delete_value("website_404")


Ladataan…
Peruuta
Tallenna