Thursday, November 6, 2008

output cache

One of the things you can do on a live xataface site is turn on caching to allow the server to just the information in RAM rather than continue to hit the database for information each time. You can do this by simply entering this in the conf.ini:


[_output_cache]
enabled=1


But there comes a problem sometimes where you need the data to appear right away and not have the server continue to use the cache (at least until the server refreshes the cache). If you ever need to do this, you can enter this into manually just modify the url query to include this:

&--refresh-apc=1


This cause the server to automatically hit the database to refresh the cache. A pretty nice hack.

No comments: