Check expire timestamp #63
Unanswered
marcus-at-localhost
asked this question in
Q&A
Replies: 1 comment
-
Nette does not store the time when the cache item was created. You have to add this to the data yourself, ie. |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I'm trying to cache some data indefinitely and invalidate the cache when data was updated.
I've got the timestamp when the data was updated, but can't compare it to the timestamp when the data was cached. How can I solve this?
I thought of something like this:
But I just can't know when the cache was written?! (I'm using the sqlite storage, but that shouldn't matter)
One idea was, to use the
$timestamp
as part of the key, but then I would just fill up the cache?Thanks for any input.
Beta Was this translation helpful? Give feedback.
All reactions