Closed peterwilsoncc closed 4 years ago
A query class, the intent behind it is to set up persistent caching:
cavalcade-jobs: Individual jobs
job:{$job_id}
cavalcade-query: Query results
query:{$site_id}:{$query_and_last_changed_hash}
query:{$site_id}:last_changed
Need to store the last changed time on a site by site basis and include that as part of the query hash.
Constructs a Database query based on given paramaters
Each individual query runs two DB queries:
Key parameters
>= time()
WP_Date_Query
[]
Yeah, yeah, nah.
Closing this off as it looks like it will be covered elsewhere.
A query class, the intent behind it is to set up persistent caching:
Global Caches
cavalcade-jobs: Individual jobs
job:{$job_id}
cavalcade-query: Query results
query:{$site_id}:{$query_and_last_changed_hash}
query:{$site_id}:last_changed
Need to store the last changed time on a site by site basis and include that as part of the query hash.
Query
Constructs a Database query based on given paramaters
Each individual query runs two DB queries:
Key parameters
>= time()
-- may be able to useWP_Date_Query
[]