- RAM , : memcached , .
- XML, .
- RDMS .
- Django , CACHE_BACKEND - , ://...
- " ".
settings.py:
RSS_FETCH_DATETIME_PATH=os.path.join(
os.path.abspath(os.path.dirname(__file__)),
'rss_fetch_datetime'
)
rss- script:
from django.conf import settings
handler = open(RSS_FETCH_DATETIME_PATH, 'w+')
handler.write(int(time.time()))
handler.close()
:
from django.conf import settings
handler = open(RSS_FETCH_DATETIME_PATH, 'r+')
timestamp = int(handler.read())
handler.close()
cron - , " ", , 5 :
0 5 * * * /path/to/manage.py runscript /path/to/retreive/script
, retreive script - , .
, :
1000 .