Documentation
Cache the result of a command
usage
<[COMMAND] [refresh="parameter"]>
...
</[COMMAND]>
paramètres
hourly, daily, weekly, monthly, yearly
The refresh attribute can be used on any NQL command and allows you activate caching with a specific time frame. Every cached command will be stored in the cache folder in /Files and will be served until the time frame expires.
The cache URL parameter can be used to manage the cached datas:
- ?cache=true : the datas will be served cached
- ?cache=false : the datas will be served live but without chaging the cached datas
- ?cache=refresh : the datas will be served live and will be stored as the new cached datas
You can also use the EMPTY CACHE tool to reset part of the cache.
exemples
<QUERY>
<GET name="detail" refresh="daily">
<MEDIA ID="1234" />
</GET>
</QUERY>
Voir aussi :
EMPTY CACHE
Clean the xSushee cache