Closed (fixed)
Project:
Page Theme
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Nov 2016 at 13:47 UTC
Updated:
29 Jan 2017 at 11:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
spaghettibolognese commentedComment #3
rstamm commentedsystem_rebuild_theme_data() rebuilds, saves, and returns data about all currently available themes.
Not necessary to do it on every invocation of page_theme_get_themes()
In your patch cache_set() is being called on every invocation.
It should only be called when the data is rebuilt.
Comment #4
spaghettibolognese commentedYou're absolutely right! patch looks alright, RTBC.
Comment #5
rstamm commentedActually we do not need
system_rebuild_theme_data()We just fetch the data from the database.
Comment #8
rstamm commented