Answer the question
In order to leave comments, you need to log in
Is it possible to use multiple selects in CDbCacheDependency in YII?
Hello,
Is it possible to use multiple select queries in CDbCacheDependency to track changes in more than one table?
If not, are multiple fields from different tables parsed similar to this query:
new CDbCacheDependency("SELECT
MAX(t_places.sys_date_update),
MAX(t_category_cargo.sys_date_update)
FROM
t_places
JOIN
t_cargo;")
Answer the question
In order to leave comments, you need to log in
From the working project, which is in Yii2:
SELECT
( SELECT CONCAT( MAX( fd_config_item.date_created ), MAX( fd_config_item.date_edited ) ) FROM fd_config_item ) fd_config_item,
( SELECT CONCAT( MAX( fd_config_item_group.date_created ), MAX( fd_config_item_group.date_edited ) ) FROM fd_config_item_group ) fd_config_item_group
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question