Home › Forums › Other › Class Schedule Plugin › Re: Class Schedule Plugin
UPDATE…..I set up transients and here are the numbers.
Before = .013
After = .007
Total saved = .006
The trick I had was that each week view would create dynamic transients based on the dates and the day of the week. The transients key name would be the date of the week…prefixed with a static keyword (example… cs_{$date_of_week}. So in order to flush the transients when classes were added or edited I could not simply call the delete_transients(key_name). I had to manually delete the transients with a little custom sql and a wild card. Simple put…delete all (_transients_cs_%). The wildcard being the dates that are unknown to be cached. Ok..I will stop the rambling.
I have not updated the site in the link above with this…this has been all local testing.