Chris Pollett >
Students > [Bio] [Blog] |
Deliverable 1
Implement CacheRefresh Media Job
Purpose
The goal of this deliverable was to get familiar with Yioop code base, analyze
important classes and methods related to Media Job. Along with this, implement
a new Media Job to refresh cache with popular queries.
Description
Currently Yioop has only a dynamic cache which is populated with popular queries
offline during the restart. To refresh the cache, a script has to be run manually.
The top most popular queries have been empirically decided and are based on past data.
The dynamic contents are updated in cache with execution of every search query.
To periodically refresh the cache, a Media Job has been created.
Media jobs are the processes that are scheduled to run periodically by
Media Updater of Yioop. Having cache refreshed automatically
and periodically ensured that the cache is up to date with popular queries.
Code: CacheRefresh Media Job
Conclusion
We analyzed the important classes and methods related to Media Jobs.
Also, we have implemented a Media Job to refresh the cache which will be helpful
in the next semester to implement any algorithm which require static cache
to be populated periodically
|