I encountered a problem with routes cache of Luracast restler. For instance, i have 2 urls:
/api/service/resale/getmapinfo
/api/service/precon/getmapinfo
They work with 2 classes correspondingly:
- ResaleService
- PreconService
When I reach the first url, then in the cache appears info of methods for the first class.
Then I try to reach the second url, and then restler reads the cache and finds there only the routes for the first class so i receive a 404 error (because there is no info about the second class).
Moreover, when i first go to incorrect url (in purpose) the routes.php
cache is saved with an empty array. Then I get 404 on all the urls that i try to reach.
Basically what i see in the code is that the cache system is not based on class, but have one common cache that is written only once, first time when you reach a url. Please advice, is it something that i'm doing wrong or this is an incorrect behavior of restler?