Sfoglia il codice sorgente

Merge pull request #11494 from netchampfaris/sitemap-clear-cache

fix: Clear sitemap cache along with website cache
version-14
mergify[bot] 4 anni fa
committed by GitHub
parent
commit
364daf48e3
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/website/render.py

+ 1
- 1
frappe/website/render.py Vedi File

@@ -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")


Caricamento…
Annulla
Salva