Comments (2)
Thanks for your question which reminds me. Both storage and cache has a attribute timeout
, which determine when they should be updated.
When the storage expired, we would remove the html and send a new request to the source site. When the cache expired, we would parse HTML again.
But if the storage get updated and the cache didn't, we couldn't get expected results. We should make
sure that the cache update when the storage update. Meanwhile, give them a new timeout
.
So every storaged HTML should have a symbol showing if it is valid.Every time we get cache, we check the symbol.
We haven't finished this right now.
from toapi.
OK. Thanks for the quick answer.
from toapi.
Related Issues (20)
- 关于post数据的获取和item是编写 HOT 6
- Add force-refresh on api HOT 1
- 使用toapi run 时出现问题 HOT 1
- 过滤删除无用的item
- Cache TTL clarification HOT 5
- Access to RawHTML from selectors HOT 2
- Production Deployment Instructions HOT 3
- python2.7安装报错 HOT 2
- How to set expiration on Local Storage
- toapi is easy toStar hard todevelope HOT 1
- Error: No such command "new". HOT 2
- ImportError: cannot import name 'XPath' HOT 2
- Flask logging error HOT 2
- SyntaxError: invalid syntax HOT 1
- modify routing argument 2
- Elements not always present on page
- Is this projects still active ?
- Problem: can't start the app
- Fix simple typo: programe -> program
- Your Documentation is unable to access HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toapi.