Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

When the file is updated, we can reload the file make it work without a restart #151

Open
maxpaynebupt opened this issue Apr 7, 2020 · 1 comment

Comments

@maxpaynebupt
Copy link

maxpaynebupt commented Apr 7, 2020

Old:
`
if ($this->isModified($tileset) == true) {

    header('Access-Control-Allow-Origin: *');
    header('HTTP/1.1 304 Not Modified');
    die;
  }

`

new:
`
if ($this->isModified($tileset) == TRUE) {

    /** reload if file modified */
    __construct();
    /*
    header('Access-Control-Allow-Origin: *');
    header('HTTP/1.1 304 Not Modified');
    die;
    */
  }

`

@daliborjanak
Copy link
Collaborator

This is a performance thing and it does not make sense to do that. There can be an optional variable in the config to turn fo last modified but IMHO it will be ton usable too much

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants