# |
Apr 19th 2017, 13:43 |
hmic |
the hidden property is only used when serializing it |
# |
Apr 19th 2017, 13:43 |
hmic |
where do you use it? |
# |
Apr 19th 2017, 13:43 |
crazycoder |
so i cannot change it "globally" |
# |
Apr 19th 2017, 13:43 |
crazycoder |
hmic, yes i did it but sometimes i used it |
# |
Apr 19th 2017, 13:41 |
hmic |
crazycoder, why not just add _joinData to the _hidden property of the respective entity? |
# |
Apr 19th 2017, 13:41 |
inoas |
right? |
# |
Apr 19th 2017, 13:41 |
inoas |
writing a path as a key should be okay |
# |
Apr 19th 2017, 13:38 |
inoas |
not links ... humpf |
# |
Apr 19th 2017, 13:38 |
inoas |
but that's for redirects only anyway... |
# |
Apr 19th 2017, 13:38 |
inoas |
but as far as I know there is not |
# |
Apr 19th 2017, 13:38 |
inoas |
hmic I would have prefered if there was a way to use <include> in .htaccess ;p |
# |
Apr 19th 2017, 13:37 |
crazycoder |
https://gist.github.com/anonymous/3f55105fe22a4db8dd017285d140f383 <--- for this |
# |
Apr 19th 2017, 13:37 |
crazycoder |
hmic, do you know if there is an alternative? |
# |
Apr 19th 2017, 13:37 |
dereuromark |
and then you have time to figure out how to warm up specific updated users and you got the perfect world :slightly_smiling_face: |
# |
Apr 19th 2017, 13:37 |
hmic |
if thats what your routes work like... but no, they dont (hopefully) |
# |
Apr 19th 2017, 13:37 |
dereuromark |
prefix the cache with sth that identifies him, this way you can invalidate only a part of the cache that needs updating |
# |
Apr 19th 2017, 13:37 |
inoas |
"sounds reasonable" ;-) |
# |
Apr 19th 2017, 13:36 |
inoas |
all caching breaks down ;p |
# |
Apr 19th 2017, 13:36 |
inoas |
so every time some dude saves a document revision |
# |
Apr 19th 2017, 13:36 |
inoas |
haha |
# |
Apr 19th 2017, 13:36 |
hmic |
i'd just purge it for now :p |
# |
Apr 19th 2017, 13:36 |
hmic |
you could do that, sure |
# |
Apr 19th 2017, 13:36 |
hmic |
cahing is easy, invalidating a cache is hard |
# |
Apr 19th 2017, 13:36 |
inoas |
so on write you would lookup the cache and remove the keys that are wrong |
# |
Apr 19th 2017, 13:35 |
hmic |
you need something to invalidate the cache, whenever you use one |
# |
Apr 19th 2017, 13:35 |
inoas |
I don't like "admin panel clear cache" buttons |
# |
Apr 19th 2017, 13:35 |
hmic |
like i said in the beginning: yes! absolutely! |
# |
Apr 19th 2017, 13:35 |
inoas |
however I am concerned about timeouts |
# |
Apr 19th 2017, 13:35 |
hmic |
yes, if the cache is not warmed up, first access will be slow. who cares? |
# |
Apr 19th 2017, 13:35 |
inoas |
and then simply write the cache |
# |
Apr 19th 2017, 13:35 |
inoas |
so you would actually let the requests hit the application |
# |
Apr 19th 2017, 13:34 |
hmic |
so you use a cache! |
# |
Apr 19th 2017, 13:34 |
inoas |
a fast read proxy |
# |
Apr 19th 2017, 13:34 |
inoas |
because hitting the database is slow |
# |
Apr 19th 2017, 13:34 |
hmic |
why do you? |
# |
Apr 19th 2017, 13:34 |
inoas |
okay, then I want a proxy ;p |
# |
Apr 19th 2017, 13:34 |
inoas |
https://github.com/makallio85/yaml-route doesn't get purged |
# |
Apr 19th 2017, 13:34 |
hmic |
a cache is a cache and its not persistent by definition |
# |
Apr 19th 2017, 13:34 |
hmic |
for you too! |
# |
Apr 19th 2017, 13:34 |
inoas |
yeah that's not where I want to go |
# |
Apr 19th 2017, 13:33 |
hmic |
it can get purged whenever |