Speed up site
The page seems to take ages to load. Is there a way speed this up?
Maybe I could force Concrete5 to cache the page data and refresh let's say every 2 hours? So, the user sees only the recently cached page.
Thanks in advance for any ideas
You can do file caching (write the data you get into a file, and check last edited time and if xxx seconds have pasted ever since, try getting data again, if it's not getting data, use your cache file)?
Or even database caching by putting the data in your database and retrieve it from there. Store a last_updated value/date as well.
Lots of options I guess? :)
What would be the best method for API caching - block, file or database caching?
If you don't want to do block caching, and the data you are retrieving is quite big, I would go for file caching. This way you don't have a big database and pollute it with his data. You need read/write access for wherever you wanna write the file though of course.
Hope that helped? Others may have a different opinion, so don't jump to conclusions just yet ;)