-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the entry PHP script is modified, the cache is cleared. #406
Comments
should the cache be cleared or not? what's the current behavior? |
It should not be cleared.
cleared. |
@ziaratban you again about opcache? check opcache settings opcache.validate_timestamps |
@AndreyPopovNew thanks for reply. I am talking about the internal module cache in |
Module Parameters :
|
@ziaratban by your settings lscache expired after 3600 seconds (1 hour) lscache store cached pages (even dynamically generated) as static HTML files by default, if you change any page (code of page) then lscache purge cached page and not create new cached page until next page request. depending from settings lscache can purge:
|
This is exactly the problem, it doesn't make sense for dynamic pages. I think this needs to be handled by settings or headers. |
exist ESI - https://www.litespeedtech.com/products/features/edge-side-includes |
Thank you for your solution. @litespeedtech what is your opinion? |
I am not sure why a staled cached page is preferred over updated page reflecting the most recent change. |
As you are aware, in php frameworks and especially in the world of object orientation, compared to the traditional mode (such as WordPress), everything starts from an index.php file or entry script so that the entire system flow is controlled by the framework (such as yii2 or Laravel). Therefore, all requests go to one file, and therefore cache control must be managed in one file and in the framework layers. If openlitespeed is supposed to delete the entire cache by updating the index.php file, it is not logical. This current behavior of cache module in openlitespeed is responsive for static files. |
I rewrite all non-files or directories in "index.php" and cache some requests based on conditions , so when the content of the
index.php
file is updated, all the cache is cleared.The text was updated successfully, but these errors were encountered: