mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
added wesite slideshow and attributions on website
This commit is contained in:
@@ -99,4 +99,9 @@ def get_parent_item_groups(item_group_name):
|
||||
return webnotes.conn.sql("""select name, page_name from `tabItem Group`
|
||||
where lft <= %s and rgt >= %s
|
||||
and ifnull(show_in_website,0)=1
|
||||
order by lft asc""", (item_group.lft, item_group.rgt), as_dict=True)
|
||||
order by lft asc""", (item_group.lft, item_group.rgt), as_dict=True)
|
||||
|
||||
def invalidate_cache_for(item_group):
|
||||
from website.utils import delete_page_cache
|
||||
for i in get_parent_item_groups(item_group):
|
||||
delete_page_cache(i.page_name)
|
||||
Reference in New Issue
Block a user