PHaiku 0.8 features caching

26. 09. 2014

In this version, caching has been implemented.

Caching has no great benefit right now, as pages are served almost statically. Still, the performance gain is about 20%, which is not bad.

Default cache time is set to two minutes, which is very low. If increase cache time to one hour or more, you will need to be able to clear the cache. A special route is set up for this purpose. Just visit the url and cache will be cleared.

You can also change the url in the route and keep it secret, if you prefere.

With caching, more expensive features will be possible, like markdown implementation, various metadata parsing features and the like.


Feel free to comment or ask questions! Thanks!

comments powered by Disqus

Execution time: 0.0219s Memory usage: 0.654488MB