Large number of queries if templates stored in database, or error on delete from cache

前端 未结 1 866
闹比i
闹比i 2021-01-14 10:56

With storing a few templates in a database as found in this answer there is a great increase in the number of database queries. For example, profiler shows 12 of 20 queries

相关标签:
1条回答
  • 2021-01-14 11:31

    It turns out that the large number of queries only occurs in dev mode! This was determined by enabling the query log in MySQL. Exercising the editing of a template and then rendering it then reviewing the log showed that only the stored template invoked a template query. None of the other templates appeared in the query log. Case closed!

    0 讨论(0)
提交回复
热议问题